Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yum install -y epel-release bridge-utils git vim tmux
- yum upgrade -y
- #get the network config
- cd /etc/sysconfig/network-scripts/
- curl --remote-name https://raw.githubusercontent.com/cloudnull/os-ansible-deployment/master-rhel/etc/network/network-scripts/ifcfg-br-mgmt --remote-name https://raw.githubusercontent.com/cloudnull/os-ansible-deployment/master-rhel/etc/network/network-scripts/ifcfg-br-storage --remote-name https://raw.githubusercontent.com/cloudnull/os-ansible-deployment/master-rhel/etc/network/network-scripts/ifcfg-br-vxlan --remote-name https://raw.githubusercontent.com/cloudnull/os-ansible-deployment/master-rhel/etc/network/network-scripts/ifcfg-br-vlan
- git clone https://github.com/openstack/openstack-ansible /opt/openstack-ansible
- cp /opt/openstack-ansible/etc/openstack_deploy/ /etc/ -a
- cp /etc/openstack_deploy/openstack_user_config.yml.aio /etc/openstack_deploy/openstack_user_config.yml
- cd /opt/openstack-ansible/
- export ANSIBLE_ROLE_FETCH_MODE=git-clone
- ./scripts/bootstrap-ansible.sh
- /opt/openstack-ansible/scripts/pw-token-gen.py --file /etc/openstack_deploy/user_secrets.yml
- cd /etc/openstack_deploy/conf.d/
- cp keystone.yml.aio keystone.yml
- cp glance.yml.aio glance.yml
- cp cinder.yml.aio cinder.yml
- cp nova.yml.aio nova.yml
- cp horizon.yml.aio horizon.yml
- cp neutron.yml.aio neutron.yml
- cp swift.yml.aio swift.yml
- # reboot !!
- mkdir -p /openstack/log/ansible-logging/
- ## now deploy.
- export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- cd /opt/openstack-ansible/playbooks/
- openstack-ansible --diff -vvv setup-hosts.yml
- openstack-ansible --diff -vvv setup-infrastructure.yml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement