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

This commit is contained in:
Jenkins 2016-01-19 00:44:56 +00:00 committed by Gerrit Code Review
commit f764ad8d17
1 changed files with 8 additions and 2 deletions

View File

@ -33,8 +33,9 @@ Options:
--help, -h Show this usage information --help, -h Show this usage information
Commands: Commands:
deploy Deploy and start all kolla containers deploy Deploy and start all kolla containers
pull Pull all images for containers (only pulls, no runnnig container changes) post-deploy Do post deploy on deploy node
pull Pull all images for containers (only pulls, no runnnig container changes)
EOF EOF
} }
@ -83,6 +84,11 @@ case "$1" in
ACTION="Deploying Playbooks" ACTION="Deploying Playbooks"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=deploy" 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) (pull)
ACTION="Pulling Docker images" ACTION="Pulling Docker images"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=pull" CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=pull"