d2db275028
Prior to this commit there were two possible webhooks - zack/r10k webhook - code manager I moved these two profiles under git_webhook and choose the correct one based on the version of PE being used. As a safety hatch, I provide the $force_zack_r10k_webhook param on profile::git_webhook in case someone needs to continue using it instead of code manager.
12 lines
274 B
Puppet
12 lines
274 B
Puppet
class profile::git_webhook (
|
|
$force_zack_r10k_webhook = false
|
|
) {
|
|
|
|
if versioncmp( $::pe_server_version, '2015.2.99' ) <= 0 or $force_zack_r10k_webhook {
|
|
include profile::git_webhook::zack_r10k_webhook
|
|
} else {
|
|
include profile::git_webhook::code_manager
|
|
}
|
|
|
|
}
|