From: Stephen Gran Date: Mon, 31 Mar 2014 07:10:58 +0000 (+0100) Subject: add client configs for mail relay X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=67cd009c15f58469d007633e610cbbe4e47c385e;p=mirror%2Fdsa-puppet.git add client configs for mail relay Signed-off-by: Stephen Gran --- diff --git a/modules/roles/manifests/mailrelay.pp b/modules/roles/manifests/mailrelay.pp index 57e2f4461..388370a7a 100644 --- a/modules/roles/manifests/mailrelay.pp +++ b/modules/roles/manifests/mailrelay.pp @@ -1,2 +1,23 @@ +# = Class: roles::mailrelay +# +# Setup for mailrelay hosts +# +# == Sample Usage: +# +# include roles::mailrelay +# class roles::mailrelay { + include roles::pubsub::parameters + + $rabbit_password = $roles::pubsub::parameters::rabbit_password + + roles::pubsub::config { 'emailvdomains': + key => 'dsa-emailvdomains-receive', + exchange => dsa, + queue => "email-${::fqdn}", + topic => 'dsa.email.update', + vhost => dsa, + username => $::fqdn, + password => $rabbit_password + } }