git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/profile/manifests/zack_r10k_webhook.pp
diff options
context:
space:
mode:
authormail_redacted_for_web 2015-11-25 10:29:54 -0600
committermail_redacted_for_web 2015-11-25 10:29:54 -0600
commit10732cf3700bce033091fc3d0e1e5d9bb643932d (patch)
tree5b56538eb00a066503c4b32ac00a961036bbb220 /site/profile/manifests/zack_r10k_webhook.pp
parent869a5c3aa974b53e2f7f4c8fd8ab01fab0420f6d (diff)
parent1fd5334441f1f767154ffc28ea04c7cf8fec6611 (diff)
downloadcontrol-repo-template-10732cf3700bce033091fc3d0e1e5d9bb643932d.tar.bz2
Merge pull request #4 from npwalker/merge_npwalker_control_repo
Merge npwalker/control-repo in puppetlabs/control-repo
Diffstat (limited to 'site/profile/manifests/zack_r10k_webhook.pp')
-rw-r--r--site/profile/manifests/zack_r10k_webhook.pp29
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'],
+ }
+
+}