openstack-ansible/scripts/uklabsetup.sh
Andy McCrae 4da4e7735a Fix keystone endpoint creation for Swift
* Setup the keystone endpoint for swift
* Move swift-proxy port to 8888 (8000 is used by heat)
* Typo prevented object server services from restarting
* Adjust order of swift plays for swift-all.yml
2014-10-17 16:29:57 +01:00

39 lines
1.1 KiB
Bash
Executable File

set -x
LAB=${1:-"uklab16_20"}
function key_create(){
ssh-keygen -t rsa -f /root/.ssh/id_rsa -N ''
}
# Make the system key used for adding to containers
pushd /root/.ssh/
if [ ! -f "id_rsa" ];then
key_create
fi
if [ ! -f "id_rsa.pub" ];then
rm "id_rsa"
key_create
fi
# Install all the things
pushd /root/ansible-lxc-rpc
# Ensure that the scripts python requirements are installed
pip install -r requirements.txt
pushd /root/ansible-lxc-rpc/rpc_deployment
# Base Setup
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/setup/host-setup.yml
# Infrastructure Setup
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/infrastructure-setup.yml
# HAProxy Setup (Only for NON-HW LB, NON Production installs)
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/haproxy-install.yml
# Openstack Service Setup
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/openstack/openstack-setup.yml
ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/openstack/swift-all.yml
popd
popd