]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
add client configs for mail relay
authorStephen Gran <steve@lobefin.net>
Mon, 31 Mar 2014 07:10:58 +0000 (08:10 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 31 Mar 2014 07:10:58 +0000 (08:10 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/roles/manifests/mailrelay.pp

index 57e2f4461f69183848406dba069db05310a6045a..388370a7a4918f6c06487d024278baf328427cf0 100644 (file)
@@ -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
+       }
 }