Commit b37d09c0 authored by Markus Frosch's avatar Markus Frosch
Browse files

linux: Configure puppet pin/repository

parent e2c44b01
......@@ -4,6 +4,16 @@ class icinga2_testing::profiles::linux
contain ::apt
contain ::unattended_upgrades
if $::lsbdistcodename == 'jessie' {
contain ::apt::backports
# Newer version of Puppet in backports
apt::pin { 'puppet-from-backports':
packages => 'puppet*',
release => 'jessie-backports',
priority => 500,
}
}
# update more often
cron { 'unattended_upgrades hourly':
command => 'apt-get update -qq && unattended-upgrades',
......@@ -12,6 +22,18 @@ class icinga2_testing::profiles::linux
hour => '*',
}
}
elsif $::osfamily == 'RedHat' {
yumrepo { 'puppetlabs-products':
descr => 'Puppetlabs 3.x products repository - RHEL $releasever $basearch',
baseurl => 'https://yum.puppetlabs.com/el/$releasever/products/$basearch',
gpgkey => 'https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs https://yum.puppetlabs.com/RPM-GPG-KEY-puppet',
}
yumrepo { 'puppetlabs-dependencies':
descr => 'Puppetlabs 3.x dependencies repository - RHEL $releasever $basearch',
baseurl => 'https://yum.puppetlabs.com/el/$releasever/dependencies/$basearch',
gpgkey => 'https://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs https://yum.puppetlabs.com/RPM-GPG-KEY-puppet',
}
}
contain ::ntp
contain ::icinga_admin
......
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