git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/role/manifests
diff options
context:
space:
mode:
authormail_redacted_for_web 2015-10-30 13:04:42 -0700
committermail_redacted_for_web 2015-10-30 13:19:33 -0700
commit8e271e3043fd55ce7c39f520360214e6844085af (patch)
treee40c775c3df30f96b5980fb8544860cf776d9928 /site/role/manifests
parent3fcf6e3d5e631491272a39177448c97b431ea477 (diff)
downloadcontrol-repo-template-8e271e3043fd55ce7c39f520360214e6844085af.tar.bz2
Change the zack/r10k webhook to utilize username and password
To accomodate generating random usernames and passwords, I had to parameterize the profiles which I didn't feel great about but I also didn't want to have to put the username and pass in hiera.
Diffstat (limited to 'site/role/manifests')
-rw-r--r--site/role/manifests/all_in_one_pe.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/site/role/manifests/all_in_one_pe.pp b/site/role/manifests/all_in_one_pe.pp
index f34a261..3762325 100644
--- a/site/role/manifests/all_in_one_pe.pp
+++ b/site/role/manifests/all_in_one_pe.pp
@@ -1,6 +1,16 @@
class role::all_in_one_pe {
- include profile::webhook_no_mcollective
- include profile::puppetmaster
+ $webhook_username = hiera('webhook_username', fqdn_rand_string(10, '', 'username'))
+ $webhook_password = hiera('webhook_password', fqdn_rand_string(20, '', 'password'))
+
+ class { 'profile::puppetmaster' :
+ webhook_username => $webhook_username,
+ webhook_password => $webhook_password,
+ }
+
+ class { 'profile::webhook_no_mcollective' :
+ username => $webhook_username,
+ password => $webhook_password,
+ }
}