This commit is contained in:
BIN
files/webhook
BIN
files/webhook
Binary file not shown.
BIN
files/webhook-go.rpm
Normal file
BIN
files/webhook-go.rpm
Normal file
Binary file not shown.
@@ -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
|
||||||
|
|||||||
@@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user