instack-undercloud/elements/undercloud-install/environment.d/00-distro-name
James Slagle be7cb52d33 Clean up json file
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
2015-03-17 16:15:55 -04:00

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