From 64c40e20a56c1ecbc78956801bc0eb697ad2ef8d Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Mon, 1 Aug 2016 21:57:48 +0000 Subject: add deploy-servers command - This change extends kolla-ansible with a deploy-server command to enroll and deploy physical servers with bifrost. Change-Id: Iaa9f34b00e676569f6e3df679b7454b1ec0b8e34 Implements: blueprint bifrost-support --- tools/kolla-ansible | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/kolla-ansible b/tools/kolla-ansible index ea9275776..bb8e9bd25 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -42,9 +42,11 @@ Commands: prechecks Do pre-deployment checks for hosts mariadb_recovery Recover a completely stopped mariadb cluster bootstrap-servers bootstrap servers with kolla deploy dependencies - deploy Deploy and start all kolla containers destroy Destroy Kolla containers, volumes and host configuration ('-e destroy_include_images=yes' to also destroy Kolla images) + deploy Deploy and start all kolla containers + deploy-bifrost Deploy and start bifrost container + deploy-servers Enroll and deploy servers with bifrost post-deploy Do post deploy on deploy node pull Pull all images for containers (only pulls, no running container changes) reconfigure Reconfigure OpenStack service @@ -146,18 +148,23 @@ case "$1" in PLAYBOOK="${BASEDIR}/ansible/destroy.yml" ;; (bootstrap-servers) - ACTION="Deploying Playbooks" + ACTION="Bootstraping servers" PLAYBOOK="${BASEDIR}/ansible/kolla-host.yml" EXTRA_OPTS="$EXTRA_OPTS -e action=bootstrap-servers" ;; -(bifrost-deploy) +(deploy) + ACTION="Deploying Playbooks" + EXTRA_OPTS="$EXTRA_OPTS -e action=deploy" + ;; +(deploy-bifrost) ACTION="Deploying Bifrost" PLAYBOOK="${BASEDIR}/ansible/bifrost.yml" EXTRA_OPTS="$EXTRA_OPTS -e action=deploy" ;; -(deploy) - ACTION="Deploying Playbooks" - EXTRA_OPTS="$EXTRA_OPTS -e action=deploy" +(deploy-servers) + ACTION="Deploying servers with bifrost" + PLAYBOOK="${BASEDIR}/ansible/bifrost.yml" + EXTRA_OPTS="$EXTRA_OPTS -e action=deploy-servers" ;; (post-deploy) ACTION="Post-Deploying Playbooks" -- cgit v1.2.3