From: Stephen Gran <steve@lobefin.net>
Date: Mon, 31 Mar 2014 07:10:58 +0000 (+0100)
Subject: add client configs for mail relay
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=67cd009c15f58469d007633e610cbbe4e47c385e;p=dsa-puppet.git

add client configs for mail relay

Signed-off-by: Stephen Gran <steve@lobefin.net>
---

diff --git a/modules/roles/manifests/mailrelay.pp b/modules/roles/manifests/mailrelay.pp
index 57e2f446..388370a7 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
+	}
 }