X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fclient.pp;h=580115d6dfcabfb65ad6acdf59421b5979487ad3;hb=76ca91bce24ecbcbcc4e62a37aa06fd0fb9f96c7;hp=2918a7938a79c1bc28208192ceff636a4716dce9;hpb=b529b139a60ea8355089511737c8264185d8d074;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index 2918a7938..580115d6d 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -5,6 +5,14 @@ class bacula::client inherits bacula { @@bacula::node { $::fqdn: bacula_client_port => $bacula::bacula_client_port, } + + @@concat::fragment { "bacula-dsa-client-list::$fqdn": + target => $bacula::bacula_dsa_client_list , + content => @("EOF"), + ${fqdn} + | EOF + tag => $bacula::tag_bacula_dsa_client_list, + } } package { ['bacula-fd']: @@ -51,23 +59,24 @@ class bacula::client inherits bacula { 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, - } + # old name for the override content 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'], + ensure => absent, + } + systemd::override { 'bacula-fd': + content => @(EOT) + [Service] + ExecStart= + ExecStart=/usr/sbin/bacula-fd -c $CONFIG -f -u bacula -k + | EOT } } else { file { '/etc/systemd/system/bacula-fd.service.d/user.conf': ensure => absent, } + systemd::override { 'bacula-fd': + ensure => absent, + } } @ferm::rule { 'dsa-bacula-fd-v4':