X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Frtmaster.pp;h=38a6d7e3fe660ccdc1beb5443bdd0f168fcd7c30;hb=015fa6b401098df522b1adf8e574a88d581ef340;hp=131c80c125c10265ae112bb08993b5c4dd7244e2;hpb=be81cf0c1d53ed7b206b91f73e5ab77c8b1ef5d0;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/rtmaster.pp b/modules/roles/manifests/rtmaster.pp index 131c80c12..38a6d7e3f 100644 --- a/modules/roles/manifests/rtmaster.pp +++ b/modules/roles/manifests/rtmaster.pp @@ -1,4 +1,11 @@ -class roles::rtmaster { +# rt.debian.org +# +# @param db_address hostname of the postgres server for this service +# @param db_port port of the postgres server for this service +class roles::rtmaster ( + String $db_address, + Integer $db_port, +) { include apache2 ssl::service { 'rt.debian.org': notify => Exec['service apache2 reload'], @@ -10,4 +17,12 @@ class roles::rtmaster { mail_user => 'rt', mail_group => 'rt', } + + @@postgres::cluster::hba_entry { "rt-${::fqdn}": + tag => "postgres::cluster::${db_port}::hba::${db_address}", + pg_port => $db_port, + database => 'rtdb', + user => 'rtuser', + address => $base::public_addresses, + } }