Skip to content
Snippets Groups Projects
Commit f764ad8d authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "kolla-ansible: add post-deploy subcommand"

parents 9a9dbf48 0e913e6a
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,9 @@ Options:
--help, -h Show this usage information
Commands:
deploy Deploy and start all kolla containers
pull Pull all images for containers (only pulls, no runnnig container changes)
deploy Deploy and start all kolla containers
post-deploy Do post deploy on deploy node
pull Pull all images for containers (only pulls, no runnnig container changes)
EOF
}
......@@ -83,6 +84,11 @@ case "$1" in
ACTION="Deploying Playbooks"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=deploy"
;;
(post-deploy)
ACTION="Post-Deploying Playbooks"
PLAYBOOK="${BASEDIR}/ansible/post-deploy.yml"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK"
;;
(pull)
ACTION="Pulling Docker images"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=pull"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment