X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fdirector.pp;h=b48eedcb9283005f3f9a6d7bbe2abbd7df0e8c61;hb=d51af02fd82a924f3d491055cfe72291d8854b52;hp=d0c06de087caf98d800b1508c8689af53c97a70a;hpb=293e30c707a09ba192111b8c4a98442caac5e191;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/director.pp b/modules/bacula/manifests/director.pp index d0c06de08..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,24 @@ class bacula::director inherits bacula { rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr (${bacula_director_address} localhost) ACCEPT", } - $clients = ['berlioz.debian.org', 'biber.debian.org', 'draghi.debian.org'] - bacula::node { $clients: } + file { '/etc/bacula/conf.d/empty.conf': + content => '', + mode => '0440', + group => bacula, + require => Package['bacula-director-pgsql'], + notify => Service['bacula-director'] + } + 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'] + } }