git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/profile/manifests/zack_r10k_webhook.pp
diff options
context:
space:
mode:
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'],
+ }
+
+}