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 16:51:43 +0000
committermail_redacted_for_web 2015-11-25 16:51:43 +0000
commit2859cffba989f4751d60ab0127e7ad5e7b65278a (patch)
treed74953d5f0595d1e1082dfece1f22e97111f7a51 /site/profile/manifests/zack_r10k_webhook.pp
parentc2bd0d3ca1fd4e9f2fce24196201835272fd1e21 (diff)
parent10732cf3700bce033091fc3d0e1e5d9bb643932d (diff)
downloadcontrol-repo-template-2859cffba989f4751d60ab0127e7ad5e7b65278a.tar.bz2
Merged from upstream
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'],
+ }
+
+}