Commit e8349058 authored by Rene Hadler's avatar Rene Hadler

puppet-installer: Read distro codename from os-release, update to Puppet6

parent e4c07431
#!/bin/bash
echo "Installing ca-certificates and puppet5-release-stretch"
. /etc/os-release
echo "Installing ca-certificates and puppet6-release-$VERSION_CODENAME"
apt-get -y install ca-certificates
cd /tmp && wget https://apt.puppetlabs.com/puppet5-release-stretch.deb
dpkg -i /tmp/puppet5-release-stretch.deb
cd /tmp && wget https://apt.puppetlabs.com/puppet6-release-$VERSION_CODENAME.deb
dpkg -i /tmp/puppet6-release-$VERSION_CODENAME.deb
apt update
......@@ -38,7 +41,6 @@ read
/opt/puppetlabs/bin/puppet agent --test
systemctl enable puppet.service
systemctl start puppet.service
echo "Script is finished. Puppet should have been added to the Hostlist in Foreman"
#!/bin/bash
echo "Installing ca-certificates and puppet5-release-stretch"
. /etc/os-release
echo "Installing ca-certificates and puppet6-release-$VERSION_CODENAME"
apt-get -y install ca-certificates
cd /tmp
wget https://apt.puppetlabs.com/puppet5-release-bionic.deb
dpkg -i /tmp/puppet5-release-bionic.deb
wget https://apt.puppetlabs.com/puppet6-release-$VERSION_CODENAME.deb
dpkg -i /tmp/puppet6-release-$VERSION_CODENAME.deb
apt update
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment