From 76790b983062c130c7a9442c44cd169ef25c4161 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 31 Mar 2014 08:05:18 +0100 Subject: [PATCH] introduce pubsub config for git master Signed-off-by: Stephen Gran --- hieradata/common.yaml | 2 ++ modules/roles/manifests/git_master.pp | 23 +++++++++++++++++++++++ modules/roles/manifests/init.pp | 4 ++++ 3 files changed, 29 insertions(+) create mode 100644 modules/roles/manifests/git_master.pp 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 -- 2.39.2