HAS_TTY='y'
HAS_COLORS="n"
-VERSION="1.0"
+VERSION="1.1"
BASENAME="$(basename ${0})"
BASE_DIR="$(dirname ${0})"
debug "Using following options:"
if [[ "${VERBOSE}" == "y" ]] ; then
- cat <<-EOF
+ local msg=$( cat <<-EOF
FQDN: ${GREEN}${FQDN}${NORMAL}
Puppet environment: ${GREEN}${ENVIRONMENT}${NORMAL}
Tier: ${GREEN}${TIER}${NORMAL}
Purpose: ${GREEN}${PURPOSE}${NORMAL}
EOF
+ )
+ echo -e "${msg}"
fi
}
info "Checking OS release ..."
if [[ -f /etc/redhat-release ]] ; then
- if grep --quiet -i "release 7" /etc/redhat-release ; then
+ if grep --quiet -i "release 8\." /etc/redhat-release ; then
+ RELEASE=8
+ elif grep --quiet -i "release 7\." /etc/redhat-release ; then
RELEASE=7
- elif grep --quiet -i "release 6" /etc/redhat-release ; then
+ elif grep --quiet -i "release 6\." /etc/redhat-release ; then
RELEASE=6
else
error "Found invalid OS release: $(cat /etc/redhat-release)"