From 67cd009c15f58469d007633e610cbbe4e47c385e Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 31 Mar 2014 08:10:58 +0100 Subject: [PATCH] add client configs for mail relay Signed-off-by: Stephen Gran --- modules/roles/manifests/mailrelay.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 + } } -- 2.20.1