From: Stephen Gran Date: Mon, 31 Mar 2014 07:05:18 +0000 (+0100) Subject: introduce pubsub config for git master X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=76790b983062c130c7a9442c44cd169ef25c4161 introduce pubsub config for git master Signed-off-by: Stephen Gran --- diff --git a/hieradata/common.yaml b/hieradata/common.yaml index c3226499..872ad67a 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -40,6 +40,8 @@ roles: ftp.upload.d.o: - franck.debian.org - ravel.debian.org + git_master: + - adayevskaya.debian.org keyring: - kaufmann.debian.org lists: diff --git a/modules/roles/manifests/git_master.pp b/modules/roles/manifests/git_master.pp new file mode 100644 index 00000000..a265ed26 --- /dev/null +++ b/modules/roles/manifests/git_master.pp @@ -0,0 +1,23 @@ +# = Class: roles::git_master +# +# Setup for git/git2.debian.org master host +# +# == Sample Usage: +# +# include roles::git_master +# +class roles::git_master { + + include roles::pubsub::parameters + + $rabbit_password = $roles::pubsub::parameters::rabbit_password + + roles::pubsub::config { 'emailvdomains': + key => 'dsa-emailvdomains', + exchange => dsa, + topic => 'dsa.email.update', + vhost => dsa, + username => $::fqdn, + password => $rabbit_password + } +} diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index be0c14e3..249dde66 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -71,6 +71,10 @@ class roles { include roles::ftp_upload } + if has_role('git_master') { + include roles::git_master + } + if has_role('security_master') { include roles::security_master include roles::dakmaster