Advertisement
Guest User

Untitled

a guest
Dec 19th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. yum install -y epel-release bridge-utils git vim tmux
  2. yum upgrade -y
  3.  
  4.  
  5. #get the network config
  6. cd /etc/sysconfig/network-scripts/
  7. 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
  8.  
  9. git clone https://github.com/openstack/openstack-ansible /opt/openstack-ansible
  10. cp /opt/openstack-ansible/etc/openstack_deploy/ /etc/ -a
  11. cp /etc/openstack_deploy/openstack_user_config.yml.aio /etc/openstack_deploy/openstack_user_config.yml
  12.  
  13. cd /opt/openstack-ansible/
  14.  
  15. export ANSIBLE_ROLE_FETCH_MODE=git-clone
  16. ./scripts/bootstrap-ansible.sh
  17.  
  18. /opt/openstack-ansible/scripts/pw-token-gen.py --file /etc/openstack_deploy/user_secrets.yml
  19.  
  20. cd /etc/openstack_deploy/conf.d/
  21. cp keystone.yml.aio keystone.yml
  22. cp glance.yml.aio glance.yml
  23. cp cinder.yml.aio cinder.yml
  24. cp nova.yml.aio nova.yml
  25. cp horizon.yml.aio horizon.yml
  26. cp neutron.yml.aio neutron.yml
  27. cp swift.yml.aio swift.yml
  28.  
  29. # reboot !!
  30.  
  31. mkdir -p /openstack/log/ansible-logging/
  32.  
  33. ## now deploy.
  34.  
  35. export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  36. cd /opt/openstack-ansible/playbooks/
  37.  
  38. openstack-ansible --diff -vvv setup-hosts.yml
  39. openstack-ansible --diff -vvv setup-infrastructure.yml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement