summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-02-21 16:10:42 +0100
committerJan Dittberner <jandd@cacert.org>2018-02-21 16:10:42 +0100
commit48330606e260d9052e718d4bee6f06a3619554c7 (patch)
tree3a9e11a6bda1391b56ef610475f61e452cfa933f
parent56c9d6f0a804c63ccc7794ebfeba035d975fb176 (diff)
downloadcacert-puppet-48330606e260d9052e718d4bee6f06a3619554c7.tar.gz
cacert-puppet-48330606e260d9052e718d4bee6f06a3619554c7.tar.xz
cacert-puppet-48330606e260d9052e718d4bee6f06a3619554c7.zip
Add systemd-sysv blacklisting preference
-rw-r--r--sitemodules/profiles/files/base/apt_blacklist_systemd-sysv.pref3
-rw-r--r--sitemodules/profiles/manifests/base.pp10
2 files changed, 12 insertions, 1 deletions
diff --git a/sitemodules/profiles/files/base/apt_blacklist_systemd-sysv.pref b/sitemodules/profiles/files/base/apt_blacklist_systemd-sysv.pref
new file mode 100644
index 0000000..6c8210b
--- /dev/null
+++ b/sitemodules/profiles/files/base/apt_blacklist_systemd-sysv.pref
@@ -0,0 +1,3 @@
+Package: systemd-sysv
+Pin: release *
+Pin-Priority: -1
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index b9c6e46..aa83172 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -28,7 +28,7 @@
# Copyright
# ---------
#
-# Copyright 2016-2017 Jan Dittberner
+# Copyright 2016-2018 Jan Dittberner
#
class profiles::base (
Array[String] $admins = [],
@@ -108,4 +108,12 @@ class profiles::base (
{'oscodename' => $facts['os']['distro']['codename']}),
require => Package['lsb-release'],
}
+
+ file { '/etc/apt/preferences.d/blacklist_systemd-sysv.pref':
+ ensure => file,
+ owner => 'root',
+ group =>'root',
+ mode => '0644',
+ source => 'puppet:///modules/profiles/base/apt_blacklist_systemd-sysv.pref',
+ }
}