8e271e3043
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.
17 lines
452 B
Puppet
17 lines
452 B
Puppet
class role::all_in_one_pe {
|
|
|
|
$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,
|
|
}
|
|
|
|
}
|