X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fclient.pp;h=2918a7938a79c1bc28208192ceff636a4716dce9;hb=a964a55270d7645b19bab0c5d5b971d344575a56;hp=7900e9a2fc3175fc337e5134fcf5949250068b9e;hpb=2930ccd62026a0318e140ded45afdcc79c629407;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index 7900e9a2f..2918a7938 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -1,5 +1,5 @@ class bacula::client inherits bacula { - @@bacula::storage-per-node { $::fqdn: } + @@bacula::storage_per_node { $::fqdn: } if ! getfromhash($site::nodeinfo, 'not-bacula-client') { @@bacula::node { $::fqdn: @@ -50,6 +50,25 @@ class bacula::client inherits bacula { require => Package['bacula-fd'], notify => Service['bacula-fd'], } + if (versioncmp($::lsbmajdistrelease, '9') >= 0 and $systemd) { + file { '/etc/systemd/system/bacula-fd.service.d': + ensure => directory, + mode => '0755', + owner => root, + group => root, + } + file { '/etc/systemd/system/bacula-fd.service.d/user.conf': + source => 'puppet:///modules/bacula/bacula-fd-systemd', + mode => '0400', + owner => root, + group => root, + notify => Exec['systemctl daemon-reload'], + } + } else { + file { '/etc/systemd/system/bacula-fd.service.d/user.conf': + ensure => absent, + } + } @ferm::rule { 'dsa-bacula-fd-v4': domain => '(ip)',