From ff177328282ecdb257c23e65d8ba922c443b5d54 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 4 Dec 2015 13:02:35 -0800 Subject: [PATCH] Remove centos6 support This removes centos6 support from install_puppet.sh because centos6 is no longer supported so this code is dead. Change-Id: If59f10a6a9c576b1299b0e49a2e82d2a1a1d7ecf --- install_puppet.sh | 59 --------------------------------------------- tools/apply-test.sh | 4 +-- 2 files changed, 1 insertion(+), 62 deletions(-) diff --git a/install_puppet.sh b/install_puppet.sh index af887675e1..17d75f4aea 100755 --- a/install_puppet.sh +++ b/install_puppet.sh @@ -27,12 +27,6 @@ function is_fedora { [ -f /usr/bin/yum ] && cat /etc/*release | grep -q -e "Fedora" } -function is_rhel6 { - [ -f /usr/bin/yum ] && \ - cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ - cat /etc/*release | grep -q 'release 6' -} - function is_rhel7 { [ -f /usr/bin/yum ] && \ cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \ @@ -127,52 +121,6 @@ EOF yum install -y https://rdoproject.org/repos/rdo-release.rpm } -function setup_puppet_rhel6 { - local puppet_pkg="http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-6.noarch.rpm" - - # install a bootstrap epel repo to install latest epel-release - # package (which provides correct gpg keys, etc); then remove - # boostrap - cat > /etc/yum.repos.d/epel-bootstrap.repo < /etc/yum.repos.d/puppetlabs.repo <<"EOF" -[puppetlabs-products] -name=Puppet Labs Products El 6 - $basearch -baseurl=http://yum.puppetlabs.com/el/6/products/$basearch -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs -enabled=1 -gpgcheck=1 -EOF - - yum update -y - - # see comments in setup_puppet_fedora - ln -s /usr/bin/pip /usr/bin/pip-python - # Wipe out templatedir so we don't get warnings about it - sed -i '/templatedir/d' /etc/puppet/puppet.conf -} - function setup_puppet_ubuntu { if ! which lsb_release > /dev/null 2<&1 ; then DEBIAN_FRONTEND=noninteractive apt-get --option 'Dpkg::Options::=--force-confold' \ @@ -252,11 +200,6 @@ function setup_pip { exit 1 fi - if is_rhel6; then - yum erase -y python-setuptools - rm -rf /usr/lib/python2.6/site-packages/setuptools* - fi - if is_opensuse; then zypper --non-interactive in --force-resolution python python-xml fi @@ -270,8 +213,6 @@ setup_pip if is_fedora; then setup_puppet_fedora -elif is_rhel6; then - setup_puppet_rhel6 elif is_rhel7; then setup_puppet_rhel7 elif is_ubuntu; then diff --git a/tools/apply-test.sh b/tools/apply-test.sh index bc2906ea7f..832eb9d302 100755 --- a/tools/apply-test.sh +++ b/tools/apply-test.sh @@ -79,9 +79,7 @@ sed -i -e "s@hiera(.\([^.]*\).)@'\1NoDefault'@" applytest/prep00 applytest/puppe mv applytest/prep00 applytest/head # These are the top-level variables defined in site.pp if [[ `lsb_release -i -s` == 'CentOS' ]]; then - if [[ `lsb_release -r -s` =~ '6' ]]; then - CODENAME='centos6' - elif [[ `lsb_release -r -s` =~ '7' ]]; then + if [[ `lsb_release -r -s` =~ '7' ]]; then CODENAME='centos7' fi elif [[ `lsb_release -i -s` == 'Ubuntu' ]]; then