Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # Install OpenStack Liberty on CentOS7x
- #
- # Information source: https://www.rdoproject.org/install/quickstart/
- #
- # PREREQUISITES
- #
- # Software: Red Hat Enterprise Linux (RHEL) 7 is the minimum recommended version,
- # or the equivalent version of one of the RHEL-based Linux distributions such as
- # CentOS, Scientific Linux, etc.
- # x86_64 is currently the only supported architecture.
- # Please name the host with a fully qualified domain name rather
- # than a short-form name to avoid DNS issues with Packstack.
- #
- # Hardware: Machine with at least 4GB RAM, processors with hardware virtualization extensions,
- # and at least one network adapter.
- # This script is to install the OpenStack Liberty release.
- #
- # Check root privileges
- if [[ $EUID -ne 0 ]]; then
- echo "This script must be run as root"
- exit 1
- fi
- #
- yum update -y
- yum install facter -y
- # bios virtualisatie enabled!
- egrep -c '(vmx|svm)' /proc/cpuinfo
- echo "if value is NOT 0 than BIOS is in virtualization mode"
- echo "if value is 0, please exit script"
- sleep 15
- # memory total = > 4Gb
- facter | grep memorytotal
- echo "if value is < 4 Gb please exit script"
- sleep 15
- # hostname = FQDN
- facter | grep hostname
- hostname -f
- echo "if value is NOT a FQDN like namehost.subdomain.domain please exit script"
- sleep 15
- # os family = rhel
- facter | grep osfamily
- facter | grep lsbdistdescription
- echo "if value is NOT a RHEL family please exit script"
- sleep 15
- # 1 NIC or more
- netstat -i
- echo "if NICs = 0 please exit script"
- sleep 15
- yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
- yum install -y openstack-packstack
- packstack --allinone
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement