X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fdirector.pp;h=b48eedcb9283005f3f9a6d7bbe2abbd7df0e8c61;hb=d51af02fd82a924f3d491055cfe72291d8854b52;hp=93c696294ff04f035a3bf4a6cc260fe287b0714e;hpb=7867f0f9fb6c63dbcc4c4730744fcdec6351edaa;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/director.pp b/modules/bacula/manifests/director.pp index 93c696294..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', 'widor.debian.org', 'wolkenstein.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'] + } }