Tamerz

r10k_webhook.pp

Nov 21st, 2015
312
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data