X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fdirector.pp;h=b48eedcb9283005f3f9a6d7bbe2abbd7df0e8c61;hb=d51af02fd82a924f3d491055cfe72291d8854b52;hp=f1a76a46b44f4f7fa539207f3b2c853652678a41;hpb=b139a41f4f8d0f0165fc9f8c5d2e90b4bd8af07d;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/director.pp b/modules/bacula/manifests/director.pp index f1a76a46b..b48eedcb9 100644 --- a/modules/bacula/manifests/director.pp +++ b/modules/bacula/manifests/director.pp @@ -1,4 +1,5 @@ class bacula::director inherits bacula { + bacula::node { $::fqdn: } package { ['bacula-director-pgsql', 'bacula-common', 'bacula-common-pgsql']: ensure => installed @@ -36,7 +37,7 @@ class bacula::director inherits bacula { rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr (${bacula_director_address} localhost) ACCEPT", } - file { '/etc/bacula/conf.d/empty': + file { '/etc/bacula/conf.d/empty.conf': content => '', mode => '0440', group => bacula, @@ -46,4 +47,14 @@ class bacula::director inherits bacula { Bacula::Node<<| |>> + package { 'bacula-console': + ensure => installed; + } + + file { '/etc/bacula/bconsole.conf': + content => template('bacula/bconsole.conf.erb'), + mode => '0640', + group => bacula, + require => Package['bacula-console'] + } }