summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/base.pp
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-08-26 18:42:21 +0200
committerJan Dittberner <jandd@cacert.org>2017-08-26 18:42:21 +0200
commite8226e73b5e4e13e1e760aa78fe01062041c11ee (patch)
tree4f946456b60d9ef538e6f519dbaabfbae07be864 /sitemodules/profiles/manifests/base.pp
parentbc85d45ec3501c4ce566512ec11f8197bd942a15 (diff)
downloadcacert-puppet-e8226e73b5e4e13e1e760aa78fe01062041c11ee.tar.gz
cacert-puppet-e8226e73b5e4e13e1e760aa78fe01062041c11ee.tar.xz
cacert-puppet-e8226e73b5e4e13e1e760aa78fe01062041c11ee.zip
Manage APT sources
Diffstat (limited to 'sitemodules/profiles/manifests/base.pp')
-rw-r--r--sitemodules/profiles/manifests/base.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index 86daddb..d67fff6 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -80,4 +80,29 @@ class profiles::base (
mode => '0644',
source => 'puppet:///modules/profiles/base/apt_proxy.conf',
}
+
+ package { 'lsb-release':
+ ensure => present,
+ }
+
+ file { '/etc/apt/sources.list':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ content => epp(
+ 'profiles/base/apt_sources.list.epp',
+ {'oscodename' => $facts['os']['distro']['codename']}),
+ require => Package['lsb-release'],
+ }
+ file { '/etc/apt/sources.list.d/puppetlabs-pc1.list':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ content => epp(
+ 'profiles/base/apt_sources_puppetlabs.list.epp',
+ {'oscodename' => $facts['os']['distro']['codename']}),
+ require => Package['lsb-release'],
+ }
}