aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-19 00:44:56 +0000
committerGerrit Code Review <review@openstack.org>2016-01-19 00:44:56 +0000
commitf764ad8d176af1e9fcdf387801ebac2cf9c6d349 (patch)
tree799f5786dbfc77885d1fc9ae4fd3feab8f01fb34
parent9a9dbf481bcecb17c9d821978ab59f7ad220aad6 (diff)
parent0e913e6ab5d11fb0a50c29274736ab53ddf3d545 (diff)
downloadkolla-f764ad8d176af1e9fcdf387801ebac2cf9c6d349.tar.gz
kolla-f764ad8d176af1e9fcdf387801ebac2cf9c6d349.zip
Merge "kolla-ansible: add post-deploy subcommand"
-rwxr-xr-xtools/kolla-ansible10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index 4ee15c2ee..aaef901b5 100755
--- a/tools/kolla-ansible
+++ b/tools/kolla-ansible
@@ -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"