diff options
| author | Wanlong Gao <wanlong.gao@easystack.cn> | 2016-01-15 15:16:41 +0800 |
|---|---|---|
| committer | Wanlong Gao <wanlong.gao@easystack.cn> | 2016-01-15 15:46:03 +0800 |
| commit | 0e913e6ab5d11fb0a50c29274736ab53ddf3d545 (patch) | |
| tree | 078676f15db556d19e7e73f7cfd6aef0fcc64126 | |
| parent | e09e20cdbe0e956765b3ced712d26e5f7a00e75e (diff) | |
| download | kolla-0e913e6ab5d11fb0a50c29274736ab53ddf3d545.tar.gz kolla-0e913e6ab5d11fb0a50c29274736ab53ddf3d545.zip | |
kolla-ansible: add post-deploy subcommand
It is more convenient to add a subcommand instead of assigning
playbook path manually.
Change-Id: Ia2f27a0f44eb719b28d5e7f9762dc47186eeb0e6
| -rwxr-xr-x | tools/kolla-ansible | 10 |
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" |
