Advertisement
Tamerz

r10k_webhook.pp

Nov 21st, 2015
3,068
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.63 KB | None | 0 0
  1. class profile::r10k_webhook {
  2.   class { 'r10k::webhook::config':
  3.     enable_ssl => true,
  4.     protected  => true,
  5.     notify     => Service['webhook'],
  6.   }
  7.  
  8.   class { 'r10k::webhook':
  9.     require => Class['r10k::webhook::config'],
  10.   }
  11.  
  12.   git_webhook { 'web_post_receive_webhook':
  13.     ensure             => present,
  14.     webhook_url        => 'https://puppet:puppet@server.domain.com:8088/payload',
  15.     token              => hiera('gitlab_api_token'),
  16.     project_name       => 'puppet/puppet-control',
  17.     server_url         => 'https://gitlab.domain.com',
  18.     disable_ssl_verify => true,
  19.     provider           => 'gitlab',
  20.   }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement