3
0
Arne Teuke
2025-10-25 18:53:39 +02:00
parent fbe5bade06
commit a7607ccae6
4 changed files with 7 additions and 1 deletions

Binary file not shown.

BIN
files/webhook-go.rpm Normal file

Binary file not shown.

View File

@@ -97,7 +97,7 @@ class puppet_cd::params (
String $pt_server_pkg = 'puppetserver', String $pt_server_pkg = 'puppetserver',
Array $pt_db_pkg = ['puppetdb','puppetdb-termini'], Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
Array $pt_r10k_pkg = ['ruby','ruby-devel','gcc','make','redhat-rpm-config','rpm-build'], Array $pt_r10k_pkg = ['ruby','ruby-devel','gcc','make','redhat-rpm-config','rpm-build'],
String $pt_r10k_webhook_pkg = 'https://3for.me/jp029', # points to rpm String $pt_r10k_webhook_pkg = '/tmp/webhook-go.rpm',
# user settings # user settings
## puppet user ## puppet user

View File

@@ -54,8 +54,14 @@ class puppet_cd::r10k::install (
content => template($pt_r10k_erb), content => template($pt_r10k_erb),
} }
if $pt_use_r10k_webhook == true { if $pt_use_r10k_webhook == true {
file { $pt_r10k_webhook_pkg:
ensure => file,
source => 'puppet:///modules/puppet_cd/webhook-go.rpm'
}
package { $pt_r10k_webhook_pkg: package { $pt_r10k_webhook_pkg:
ensure => $pt_pkg_ensure, ensure => $pt_pkg_ensure,
require => File[$pt_r10k_webhook_pkg]
} }
} }
} }