X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fmailrelay.pp;h=388370a7a4918f6c06487d024278baf328427cf0;hb=fd8ca6e26ac1706c5eccde4789362206daa0ff4a;hp=5ef8f9608dfe952cccf245fc6a8dd5e98efbfb08;hpb=cdc5eddb2cb3f9905e90c3093a61e0bf5ecc1195;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/mailrelay.pp b/modules/roles/manifests/mailrelay.pp index 5ef8f9608..388370a7a 100644 --- a/modules/roles/manifests/mailrelay.pp +++ b/modules/roles/manifests/mailrelay.pp @@ -1,7 +1,23 @@ +# = Class: roles::mailrelay +# +# Setup for mailrelay hosts +# +# == Sample Usage: +# +# include roles::mailrelay +# class roles::mailrelay { - exim::vdomain { 'admin.debian.org': - user => mail_admin, - group => mail_admin, - alias_file => 'puppet:///modules/exim/admin.debian.org/aliases' + 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 } }