From: Peter Palfrader Date: Fri, 5 Dec 2014 21:45:54 +0000 (+0000) Subject: Add a ud-replicated service file X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f325230c0ca70c6348eb5fe8eef2e35bfb671e4f;p=mirror%2Fdsa-puppet.git Add a ud-replicated service file --- diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index e009031a1..e626d7eb2 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -14,6 +14,12 @@ class debian-org { $mirror_backports = $mirror } + if $systemd { + $servicefiles = 'present' + } else { + $servicefiles = 'absent' + } + $debianadmin = [ 'debian-archive-debian-samhain-reports@master.debian.org', 'debian-admin@ftbfs.de', @@ -244,7 +250,12 @@ class debian-org { ensure => directory, mode => 0755, } - file { '/etc/systemd/system/puppet.service': + file { '/etc/systemd/system/ud-replicated.service': + ensure => $servicefiles, + source => 'puppet:///modules/debian-org/ud-replicated.service', + notify => Exec['systemctl daemon-reload'], + } + file { '/etc/systemd/system/puppet.service': ensure => 'link', target => '/dev/null', notify => Exec['systemctl daemon-reload'],