From: Peter Palfrader Date: Sun, 29 Jan 2017 20:54:00 +0000 (+0100) Subject: do systemd stuff only on systemd systems X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=26fde70940d056594616562d2e248e277854ab17;p=mirror%2Fdsa-puppet.git do systemd stuff only on systemd systems --- diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index 66c432671..230b29f5a 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -50,7 +50,7 @@ class bacula::client inherits bacula { require => Package['bacula-fd'], notify => Service['bacula-fd'], } - if $::lsbmajdistrelease >= 9 { + if ($::lsbmajdistrelease >= 9 and $systemd) { file { '/etc/systemd/system/bacula-fd.service.d': ensure => directory, mode => '0755',