git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/profile/manifests/zack_r10k_webhook.pp
blob: 7e0bd40ed05e9baa9fc2981ebcb479e6ea921ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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'],
  }

}