- Clone rpc repo to deployment node
git clone https://github.com/rcbops/rpc-openstack /opt/rpc-openstack
- cd /opt/rpc-openstack
export RPC_PRODUCT_RELEASE="newton"
./scripts/deploy.sh
- Update package source lists:
$ apt-get update
## Upgrade the system packages and kernel:
$ apt-get dist-upgrade
## Reboot the host.
- Install additional software packages if they were not installed during the operating system installation:
$ apt-get install aptitude build-essential git ntp ntpdate \
openssh-server python-dev sudo
- run the Ansible bootstrap script:
cd /opt/rpc-openstack
export RPC_PRODUCT_RELEASE="Newton" # This is optional, if unset the current stable product will be used
openstack-ansible openstack-ansible-install.yml
(or)
Change to the /opt/openstack-ansible directory, and
# scripts/bootstrap-ansible.sh
- cp all confi files to /etc/openstack_deploy
cp -r /opt/openstack-ansible/etc/openstack_deploy /etc/
- Customize openstack_user_config.yml and user_variables.yml file as per the needs
-> Set HAProxy to use http if using internal and external as same IP
vim /etc/openstack_deploy/user_variables.yml
haproxy_ssl: false
- Generate random passwords
cd /opt/openstack-ansible/scripts
python pw-token-gen.py --file /etc/openstack_deploy/user_secrets.yml
- Artifact Setup
cd /opt/rpc-openstack
export RPC_PRODUCT_RELEASE="newton"
openstack-ansible site-artifacts.yml
-
Change to the /opt/openstack-ansible/playbooks directory.
-
Run the host setup playbook:
$ openstack-ansible setup-hosts.yml
- Run the infrastructure setup playbook:
$ openstack-ansible setup-infrastructure.yml
- Run the following command to verify the database cluster:
$ ansible galera_container -m shell \
-a "mysql -h localhost -e 'show status like \"%wsrep_cluster_%\";'"
- Run the OpenStack setup playbook:
$ openstack-ansible setup-openstack.yml