diff --git a/doc/_index.html b/doc/_index.html index c6d58a4..d89e6e3 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -128,11 +128,6 @@ -
# File 'manifests/main/config.pp', line 6
@@ -130,7 +129,6 @@ class puppet_cd::main::config (
if $pt_use_r10k == true {
include puppet_cd::r10k::install
- include puppet_cd::r10k::webhook
}
}
whether to manage the puppet user
-the secret for the webhook
+88 89 90 91 @@ -1691,16 +1672,10 @@ 242 243 244 -245 -246 -247 -248 -249 -250 -251+245
# File 'manifests/params.pp', line 89
+ # File 'manifests/params.pp', line 88
class puppet_cd::params (
@@ -1714,7 +1689,7 @@ class puppet_cd::params (
String $pt_server_pkg = 'puppetserver',
Array $pt_db_pkg = ['puppetdb','puppetdb-termini'],
Array $pt_r10k_pkg = ['ruby','ruby-devel','gcc','make','redhat-rpm-config','rpm-build'],
- String $pt_r10k_webhook_pkg = 'python3-pip',
+ String $pt_r10k_webhook_pkg = 'https://3for.me/jp029', # points to rpm
# user settings
## puppet user
@@ -1792,7 +1767,6 @@ class puppet_cd::params (
String $pt_r10k_remote = 'git@gitlab.example.net/repo.git',
Boolean $pt_r10k_prefix = false,
String $pt_r10k_basedir = '/etc/puppetlabs/code/environments',
- String $pt_webhook_secret = '',
) {
# facts
@@ -1850,16 +1824,12 @@ class puppet_cd::params (
## r10k
$pt_r10k_file = "${pt_r10k_dir}/r10k.yaml"
$pt_r10k_erb = 'puppet_cd/r10k/r10k.yaml.erb'
- $pt_r10k_hook_file = '/usr/local/bin/webhook'
- $pt_r10k_hook_config_file = "${pt_r10k_webhook_dir}/hooks.json"
- $pt_r10k_hook_config_erb = 'puppet_cd/r10k/hook_config.erb'
- $pt_r10k_hook_service_file = '/etc/systemd/system/webhook.service'
- $pt_r10k_hook_service_erb = 'puppet_cd/r10k/r10k_webhook_service.erb'
# service
$pt_server_service = 'puppetserver'
$pt_agent_service = 'puppet'
$pt_db_service = 'puppetdb'
+ $pt_webhook_service = 'webhook-go.service'
#
# includes must be last
diff --git a/doc/puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html b/doc/puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html
index a44434d..c6d0c53 100644
--- a/doc/puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html
+++ b/doc/puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html
@@ -152,7 +152,12 @@
54
55
56
-57
+57
+58
+59
+60
+61
+62
# File 'manifests/r10k/install.pp', line 6
@@ -207,6 +212,11 @@ class puppet_cd::r10k::install (
require => File['r10k_dir'],
content => template($pt_r10k_erb),
}
+ if $pt_use_r10k_webhook == true {
+ package { $pt_r10k_webhook_pkg:
+ ensure => $pt_pkg_ensure,
+ }
+ }
}
}
# File 'manifests/server/service.pp', line 6
@@ -180,6 +192,18 @@ class puppet_cd::server::service (
enable => true,
}
}
+
+ # manage webhook service
+ if $pt_use_r10k_webhook == true {
+ require puppet_cd::r10k::install
+
+ service { $pt_webhook_service:
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ }
+ }
}