git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/role
diff options
context:
space:
mode:
Diffstat (limited to 'site/role')
-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,
+ }
}