Add a basic deploy script
This commit is contained in:
parent
c245c27572
commit
dd6563c109
17
scripts/run_deploy.sh
Executable file
17
scripts/run_deploy.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
export SCRIPT_PATH=$(dirname $(readlink -f "$0"))
|
||||
export PROJECT_PATH=$(dirname "$SCRIPT_PATH")
|
||||
|
||||
cp -R ${PROJECT_PATH}/openstack_deploy /etc
|
||||
pushd ${PROJECT_PATH}/openstack-ansible
|
||||
scripts/bootstrap-ansible.sh
|
||||
popd
|
||||
|
||||
pushd ${PROJECT_PATH}/openstack-ansible/playbooks
|
||||
openstack-ansible setup-hosts.yml
|
||||
openstack-ansible setup-infrastructure.yml
|
||||
openstack-ansible setup-openstack.yml
|
||||
popd
|
Loading…
x
Reference in New Issue
Block a user