Add systemd-sysv blacklisting preference
authorJan Dittberner <jandd@cacert.org>
Wed, 21 Feb 2018 15:10:42 +0000 (16:10 +0100)
committerJan Dittberner <jandd@cacert.org>
Wed, 21 Feb 2018 15:10:42 +0000 (16:10 +0100)
sitemodules/profiles/files/base/apt_blacklist_systemd-sysv.pref [new file with mode: 0644]
sitemodules/profiles/manifests/base.pp

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 (file)
index 0000000..6c8210b
--- /dev/null
@@ -0,0 +1,3 @@
+Package: systemd-sysv
+Pin: release *
+Pin-Priority: -1
index b9c6e46..aa83172 100644 (file)
@@ -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',
+  }
 }