cb7bec573e
Devstack heat is a convenience set of heat templates and cli to get devstack deployments without hassles when you already have access to an OpenStack cloud. Change-Id: I2de8d12b2e8c805a86d03311857ca9be41ff0c75 Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
17 lines
525 B
Bash
17 lines
525 B
Bash
distro=$(awk -F'=' '/^ID=/ {print $2}' /etc/os-release)
|
|
distro="${distro%\"}"
|
|
distro="${distro#\"}"
|
|
|
|
if [[ "$distro" =~ centos|fedora ]]; then
|
|
yum install -y git python-devel
|
|
yum group install -y Development Tools
|
|
if [[ "$distro" == "centos" ]]; then
|
|
yum install -y epel-release
|
|
sed -i -e '/Defaults requiretty/{ s/.*/# Defaults requiretty/ }' /etc/sudoers
|
|
fi
|
|
yum install -y jq
|
|
|
|
elif [[ "$distro" =~ ubuntu|debian ]]; then
|
|
apt-get install -y build-essential git python-dev jq
|
|
fi
|