aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAllen Gao <wanlong.gao@easystack.cn>2016-01-19 14:24:53 +0800
committerAllen Gao <wanlong.gao@easystack.cn>2016-01-20 06:37:14 +0800
commite84de1d31dc0dcb19925cabe03a90ede27b57618 (patch)
tree623ea95e7d4d449f810b25c0cd6a7870b1b94846 /tools
parentf764ad8d176af1e9fcdf387801ebac2cf9c6d349 (diff)
downloadkolla-e84de1d31dc0dcb19925cabe03a90ede27b57618.tar.gz
kolla-e84de1d31dc0dcb19925cabe03a90ede27b57618.zip
kolla-ansible: add prechecks subcommand
TrivialFix Change-Id: Ifb0ca3383cd04f5ff6baeb30ae6996d450d5c579
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kolla-ansible6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index aaef901b5..b2130ffb0 100755
--- a/tools/kolla-ansible
+++ b/tools/kolla-ansible
@@ -33,6 +33,7 @@ Options:
--help, -h Show this usage information
Commands:
+ prechecks Do pre-deployment checks for hosts
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)
@@ -80,6 +81,11 @@ done
case "$1" in
+(prechecks)
+ ACTION="Pre-deployment checking"
+ PLAYBOOK="${BASEDIR}/ansible/prechecks.yml"
+ CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK"
+ ;;
(deploy)
ACTION="Deploying Playbooks"
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=deploy"