Advertisement
henrydenhengst

Install OpenStack Liberty on CentOS7x

Dec 2nd, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.64 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Install OpenStack Liberty on CentOS7x
  4. #
  5. # Information source: https://www.rdoproject.org/install/quickstart/
  6. #
  7. # PREREQUISITES
  8. #
  9. # Software: Red Hat Enterprise Linux (RHEL) 7 is the minimum recommended version,
  10. # or the equivalent version of one of the RHEL-based Linux distributions such as
  11. # CentOS, Scientific Linux, etc.
  12. # x86_64 is currently the only supported architecture.
  13. # Please name the host with a fully qualified domain name rather
  14. # than a short-form name to avoid DNS issues with Packstack.
  15. #
  16. # Hardware: Machine with at least 4GB RAM, processors with hardware virtualization extensions,
  17. # and at least one network adapter.
  18. # This script is to install the OpenStack Liberty release.
  19. #
  20. # Check root privileges
  21. if [[ $EUID -ne 0 ]]; then
  22.    echo "This script must be run as root"
  23.    exit 1
  24. fi
  25. #
  26. yum update -y
  27. yum install facter -y
  28. # bios virtualisatie enabled!
  29. egrep -c '(vmx|svm)' /proc/cpuinfo
  30. echo "if value is NOT 0 than BIOS is in virtualization mode"
  31. echo "if value is 0, please exit script"
  32. sleep 15
  33. # memory total = > 4Gb
  34. facter | grep memorytotal
  35. echo "if value is < 4 Gb please exit script"
  36. sleep 15
  37. # hostname = FQDN
  38. facter | grep hostname
  39. hostname -f
  40. echo "if value is NOT a FQDN like namehost.subdomain.domain please exit script"
  41. sleep 15
  42. # os family = rhel
  43. facter | grep osfamily
  44. facter | grep lsbdistdescription
  45. echo "if value is NOT a RHEL family please exit script"
  46. sleep 15
  47. # 1 NIC or more
  48. netstat -i
  49. echo "if NICs = 0 please exit script"
  50. sleep 15
  51. yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
  52. yum install -y openstack-packstack
  53. packstack --allinone
  54. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement