X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Frtmaster.pp;h=38a6d7e3fe660ccdc1beb5443bdd0f168fcd7c30;hb=d37aae2f20083c472de30925ff3e16a692408a11;hp=ab2b666a0dee45533411da26b949f77fca0d50fa;hpb=dd2820b40a30e076f194a7f08560c3fb6cebae64;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/rtmaster.pp b/modules/roles/manifests/rtmaster.pp index ab2b666a0..38a6d7e3f 100644 --- a/modules/roles/manifests/rtmaster.pp +++ b/modules/roles/manifests/rtmaster.pp @@ -1,6 +1,28 @@ -class roles::rtmaster { - ssl::service { 'rt.debian.org': - notify => Exec['service apache2 reload'], - key => true, - } +# 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'], + key => true, + } + + # Note that there is also role specific config in exim4.conf + exim::vdomain { 'rt.debian.org': + 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, + } }