3149d9707f
Previously there was a mcollective and no_mcollective version of the webhook profile. They were almost identical so I merged them and manage the difference with a "use_mcollective" parameter. I renamed the webhook profile to zack_r10k_webhook.
30 lines
536 B
Puppet
30 lines
536 B
Puppet
class profile::zack_r10k_webhook (
|
|
$username,
|
|
$password,
|
|
$use_mcollective = false,
|
|
) {
|
|
|
|
if $use_mcollective {
|
|
|
|
class { 'r10k::mcollective':
|
|
notify => Service['mcollective'],
|
|
}
|
|
|
|
}
|
|
|
|
class {'r10k::webhook::config':
|
|
enable_ssl => true,
|
|
protected => true,
|
|
user => $username,
|
|
pass => $password,
|
|
use_mcollective => $use_mcollective,
|
|
}
|
|
|
|
class {'r10k::webhook':
|
|
user => 'root',
|
|
group => '0',
|
|
require => Class['r10k::webhook::config'],
|
|
}
|
|
|
|
}
|