Merge branch 'fordsa' of https://git.adam-barratt.org.uk/git/mirror/dsa-puppet
[mirror/dsa-puppet.git] / modules / roles / manifests / bacula / director.pp
1 #
2 # bacula director node
3 #
4 class roles::bacula::director(
5 ) {
6   include bacula::director
7
8   $pg_server = lookup('bacula::director::db_address')
9   $pg_port   = lookup('bacula::director::db_port')
10
11   @@postgres::cluster::hba_entry { 'bacula-dir':
12     tag      => "postgres::cluster::${pg_port}::hba::${pg_server}",
13     pg_port  => $pg_port,
14     database => 'bacula',
15     user     => ['bacula', "bacula-${::hostname}-reader", 'nagios'],
16     address  => $base::public_addresses,
17   }
18 }