Advertisement
Guest User

Untitled

a guest
Jun 8th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. sudo -i
  2. : ${BRANCH:=stable/liberty}
  3. #: ${BRANCH:=stable/mikita}
  4. : ${ANSIBLE=1.9.4}
  5.  
  6. yum -y install python-pip
  7. curl -sSL https://get.docker.io | bash
  8.  
  9. # Create the drop-in unit directory for docker.service
  10. mkdir -p /etc/systemd/system/docker.service.d
  11.  
  12. # Create the drop-in unit file
  13. tee /etc/systemd/system/docker.service.d/kolla.conf <<-'EOF'
  14. [Service]
  15. MountFlags=shared
  16. EOF
  17.  
  18. # Run these commands to reload the daemon
  19. systemctl daemon-reload
  20. systemctl restart docker
  21.  
  22. yum -y install ntp
  23. systemctl enable ntpd.service
  24. systemctl start ntpd.service
  25.  
  26. systemctl stop libvirtd.service
  27. systemctl disable libvirtd.service
  28.  
  29. yum install -y gcc libffi-devel libxslt-devel libxml2-devel python-devel openssl-devel git
  30. pip install -U ansible==${ANSIBLE}
  31.  
  32. git clone https://git.openstack.org/openstack/kolla
  33. pushd kolla
  34. git checkout $BRANCH
  35. cp -r etc/kolla /etc/
  36. popd
  37.  
  38. pip install kolla/
  39.  
  40. sed -i -e 's/neutron_external_interface: "eth1"/neutron_external_interface: "eth2"/' -e 's/network_interface: "eth0"/network_interface: "eth3"/g' /etc/kolla/globals.yml
  41.  
  42. pip install -U python-openstackclient python-neutronclient
  43.  
  44. kolla-build
  45. kolla-genpwd
  46. kolla-ansible prechecks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement