Skip to content
Snippets Groups Projects
Commit e84de1d3 authored by Allen Gao's avatar Allen Gao
Browse files

kolla-ansible: add prechecks subcommand

TrivialFix

Change-Id: Ifb0ca3383cd04f5ff6baeb30ae6996d450d5c579
parent f764ad8d
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ Options: ...@@ -33,6 +33,7 @@ Options:
--help, -h Show this usage information --help, -h Show this usage information
Commands: Commands:
prechecks Do pre-deployment checks for hosts
deploy Deploy and start all kolla containers deploy Deploy and start all kolla containers
post-deploy Do post deploy on deploy node post-deploy Do post deploy on deploy node
pull Pull all images for containers (only pulls, no runnnig container changes) pull Pull all images for containers (only pulls, no runnnig container changes)
...@@ -80,6 +81,11 @@ done ...@@ -80,6 +81,11 @@ done
case "$1" in 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) (deploy)
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"
......
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