diff options
Diffstat (limited to 'site/profile/manifests/zack_r10k_webhook.pp')
-rw-r--r-- | site/profile/manifests/zack_r10k_webhook.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/site/profile/manifests/zack_r10k_webhook.pp b/site/profile/manifests/zack_r10k_webhook.pp index 7e0bd40..3dae9d7 100644 --- a/site/profile/manifests/zack_r10k_webhook.pp +++ b/site/profile/manifests/zack_r10k_webhook.pp @@ -26,4 +26,15 @@ class profile::zack_r10k_webhook ( require => Class['r10k::webhook::config'], } + if !empty($gms_api_token) { + git_webhook { "web_post_receive_webhook-${::fqdn}" : + ensure => present, + webhook_url => "https://${username}:${password}@${::fqdn}:8088/payload", + token => $gms_api_token, + project_name => 'puppet/control-repo', + server_url => hiera('gms_server_url'), + provider => $git_management_system, + disable_ssl_verify => true, + } + } } |