be7cb52d33
Now that Puppet is driving a large portion of the Undercloud installation, we can clean up some previously used elements from the json-files. We do have to provide some additional bits via the undercloud-install element, such as simple dib-init-system script. This is much simpler than continuing to use large elements from tripleo-image-elements that have other unintended side-effects that we want to avoid. Change-Id: I0c3626e3b4a2de3d7f1e1bc3274be4150b552a26
12 lines
352 B
Plaintext
12 lines
352 B
Plaintext
if $(grep -Eqs 'Red Hat Enterprise Linux' /etc/redhat-release); then
|
|
export DISTRO_NAME=rhel7
|
|
elif $(grep -Eqs 'CentOS' /etc/redhat-release); then
|
|
export DISTRO_NAME=centos7
|
|
elif $(grep -Eqs 'Fedora' /etc/redhat-release); then
|
|
export DISTRO_NAME=fedora
|
|
else
|
|
echo "Could not detect distritubion from /etc/redhat-release!"
|
|
exit 1
|
|
fi
|
|
|