diff options
author | mail_redacted_for_web | 2015-11-24 11:16:51 -0800 |
---|---|---|
committer | mail_redacted_for_web | 2015-11-24 11:16:51 -0800 |
commit | afc9a358f30c51029d7a37122d4adfcc2add88a6 (patch) | |
tree | 655439e13d1cee28e254d6d92da6f13c4c5aa670 /site/profile/manifests/zack_r10k_webhook.pp | |
parent | 869a5c3aa974b53e2f7f4c8fd8ab01fab0420f6d (diff) | |
parent | 7e40513c531d98015101367baf5d480d7ea6d2e3 (diff) | |
download | control-repo-template-afc9a358f30c51029d7a37122d4adfcc2add88a6.tar.bz2 |
Merge branch 'production' of https://github.com/npwalker/control-repo into merge_npwalker_control_repo
Diffstat (limited to 'site/profile/manifests/zack_r10k_webhook.pp')
-rw-r--r-- | site/profile/manifests/zack_r10k_webhook.pp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/site/profile/manifests/zack_r10k_webhook.pp b/site/profile/manifests/zack_r10k_webhook.pp new file mode 100644 index 0000000..7e0bd40 --- /dev/null +++ b/site/profile/manifests/zack_r10k_webhook.pp @@ -0,0 +1,29 @@ +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'], + } + +} |