# Puppet Class: puppet_cd::r10k::webhook

Inherits:
  puppet_cd::params

Defined in:
  manifests/r10k/webhook.pp

## Summary

Class manages r10k webhook settings for the puppet_cd module.

## Overview

puppet_cd::r10k::webhook.pp Module name: puppet_cd Author: Arne Teuke (arne_teuke@confdroid)

    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    # File 'manifests/r10k/webhook.pp', line 6

    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],
    #    }
      }
    }