## puppet_cd::r10k::webhook.pp # Module name: puppet_cd # Author: Arne Teuke (arne_teuke@confdroid) # @summary Class manages r10k webhook settings for the puppet_cd module. ############################################################################### class puppet_cd::r10k::webhook ( ) inherits puppet_cd::params { if ($pt_pm_fqdn == $fqdn) and ($pt_use_r10k_webhook == true) { # create the webhook binary file { $pt_r10k_hook_file: ensure => file, owner => 'root', group => 'root', mode => '0755', selrange => s0, selrole => object_r, seltype => bin_t, seluser => unconfined_u, source => 'puppet:///module/puppet_cd/webhook', } # # manage service # service { 'r10k-webhook': # ensure => 'running', # enable => true, # subscribe => File[$pt_r10k_wh_config_file], # } } }