Merge branch 'jenkins-build-51' into 'master'
Auto-merge for build 51 See merge request puppet/puppet_cd!47
This commit is contained in:
@@ -128,11 +128,6 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Awebhook.html" title="puppet_classes::puppet_cd::r10k::webhook (puppet_class)">puppet_cd::r10k::webhook</a></span>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::puppet_cd::server::service (puppet_class)">puppet_cd::server::service</a></span>
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::puppet_cd::server::service (puppet_class)">puppet_cd::server::service</a></span>
|
||||||
|
|
||||||
|
|||||||
@@ -120,14 +120,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::puppet_cd::r10k::webhook" class="odd">
|
<li id="object_puppet_classes::puppet_cd::server::service" class="odd">
|
||||||
<div class="item">
|
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Awebhook.html" title="puppet_classes::puppet_cd::r10k::webhook (puppet_class)">puppet_cd::r10k::webhook</a></span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::puppet_cd::server::service" class="even">
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::puppet_cd::server::service (puppet_class)">puppet_cd::server::service</a></span>
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::puppet_cd::server::service (puppet_class)">puppet_cd::server::service</a></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -166,9 +166,9 @@ class puppet_cd::firewall::iptables (
|
|||||||
jump => 'accept',
|
jump => 'accept',
|
||||||
}
|
}
|
||||||
if $pt_use_r10k_webhook == true {
|
if $pt_use_r10k_webhook == true {
|
||||||
firewall { '38088 open port 8088':
|
firewall { '34000 open port 4000':
|
||||||
proto => 'tcp',
|
proto => 'tcp',
|
||||||
dport => '8088',
|
dport => '4000',
|
||||||
jump => 'accept',
|
jump => 'accept',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,8 +113,7 @@
|
|||||||
15
|
15
|
||||||
16
|
16
|
||||||
17
|
17
|
||||||
18
|
18</pre>
|
||||||
19</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
|
||||||
@@ -130,7 +129,6 @@ class puppet_cd::main::config (
|
|||||||
|
|
||||||
if $pt_use_r10k == true {
|
if $pt_use_r10k == true {
|
||||||
include puppet_cd::r10k::install
|
include puppet_cd::r10k::install
|
||||||
include puppet_cd::r10k::webhook
|
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -79,8 +79,6 @@
|
|||||||
|
|
||||||
<span class='object_link'><a href="puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span><br/>
|
<span class='object_link'><a href="puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span><br/>
|
||||||
|
|
||||||
<span class='object_link'><a href="puppet_cd_3A_3Ar10k_3A_3Awebhook.html" title="puppet_classes::puppet_cd::r10k::webhook (puppet_class)">puppet_cd::r10k::webhook</a></span><br/>
|
|
||||||
|
|
||||||
<span class='object_link'><a href="puppet_cd_3A_3Apuppetdb_3A_3Adirs.html" title="puppet_classes::puppet_cd::puppetdb::dirs (puppet_class)">puppet_cd::puppetdb::dirs</a></span><br/>
|
<span class='object_link'><a href="puppet_cd_3A_3Apuppetdb_3A_3Adirs.html" title="puppet_classes::puppet_cd::puppetdb::dirs (puppet_class)">puppet_cd::puppetdb::dirs</a></span><br/>
|
||||||
|
|
||||||
<span class='object_link'><a href="puppet_cd_3A_3Apuppetdb_3A_3Afiles.html" title="puppet_classes::puppet_cd::puppetdb::files (puppet_class)">puppet_cd::puppetdb::files</a></span><br/>
|
<span class='object_link'><a href="puppet_cd_3A_3Apuppetdb_3A_3Afiles.html" title="puppet_classes::puppet_cd::puppetdb::files (puppet_class)">puppet_cd::puppetdb::files</a></span><br/>
|
||||||
@@ -1478,7 +1476,7 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'python3-pip'</tt>)</em>
|
<em class="default">(defaults to: <tt>'https://3for.me/jp029'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
@@ -1502,24 +1500,6 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>whether to manage the puppet user</p>
|
<p>whether to manage the puppet user</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>pt_webhook_secret</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>the secret for the webhook</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -1535,6 +1515,7 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
|
88
|
||||||
89
|
89
|
||||||
90
|
90
|
||||||
91
|
91
|
||||||
@@ -1691,16 +1672,10 @@
|
|||||||
242
|
242
|
||||||
243
|
243
|
||||||
244
|
244
|
||||||
245
|
245</pre>
|
||||||
246
|
|
||||||
247
|
|
||||||
248
|
|
||||||
249
|
|
||||||
250
|
|
||||||
251</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 89</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 88</span>
|
||||||
|
|
||||||
class puppet_cd::params (
|
class puppet_cd::params (
|
||||||
|
|
||||||
@@ -1714,7 +1689,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 = 'python3-pip',
|
String $pt_r10k_webhook_pkg = 'https://3for.me/jp029', # points to rpm
|
||||||
|
|
||||||
# user settings
|
# user settings
|
||||||
## puppet user
|
## puppet user
|
||||||
@@ -1792,7 +1767,6 @@ class puppet_cd::params (
|
|||||||
String $pt_r10k_remote = 'git@gitlab.example.net/repo.git',
|
String $pt_r10k_remote = 'git@gitlab.example.net/repo.git',
|
||||||
Boolean $pt_r10k_prefix = false,
|
Boolean $pt_r10k_prefix = false,
|
||||||
String $pt_r10k_basedir = '/etc/puppetlabs/code/environments',
|
String $pt_r10k_basedir = '/etc/puppetlabs/code/environments',
|
||||||
String $pt_webhook_secret = '',
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# facts
|
# facts
|
||||||
@@ -1850,16 +1824,12 @@ class puppet_cd::params (
|
|||||||
## r10k
|
## r10k
|
||||||
$pt_r10k_file = "${pt_r10k_dir}/r10k.yaml"
|
$pt_r10k_file = "${pt_r10k_dir}/r10k.yaml"
|
||||||
$pt_r10k_erb = 'puppet_cd/r10k/r10k.yaml.erb'
|
$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
|
# service
|
||||||
$pt_server_service = 'puppetserver'
|
$pt_server_service = 'puppetserver'
|
||||||
$pt_agent_service = 'puppet'
|
$pt_agent_service = 'puppet'
|
||||||
$pt_db_service = 'puppetdb'
|
$pt_db_service = 'puppetdb'
|
||||||
|
$pt_webhook_service = 'webhook-go.service'
|
||||||
|
|
||||||
#
|
#
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|||||||
@@ -152,7 +152,12 @@
|
|||||||
54
|
54
|
||||||
55
|
55
|
||||||
56
|
56
|
||||||
57</pre>
|
57
|
||||||
|
58
|
||||||
|
59
|
||||||
|
60
|
||||||
|
61
|
||||||
|
62</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/r10k/install.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/r10k/install.pp', line 6</span>
|
||||||
@@ -207,6 +212,11 @@ class puppet_cd::r10k::install (
|
|||||||
require => File['r10k_dir'],
|
require => File['r10k_dir'],
|
||||||
content => template($pt_r10k_erb),
|
content => template($pt_r10k_erb),
|
||||||
}
|
}
|
||||||
|
if $pt_use_r10k_webhook == true {
|
||||||
|
package { $pt_r10k_webhook_pkg:
|
||||||
|
ensure => $pt_pkg_ensure,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -138,7 +138,19 @@
|
|||||||
40
|
40
|
||||||
41
|
41
|
||||||
42
|
42
|
||||||
43</pre>
|
43
|
||||||
|
44
|
||||||
|
45
|
||||||
|
46
|
||||||
|
47
|
||||||
|
48
|
||||||
|
49
|
||||||
|
50
|
||||||
|
51
|
||||||
|
52
|
||||||
|
53
|
||||||
|
54
|
||||||
|
55</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span>
|
||||||
@@ -180,6 +192,18 @@ class puppet_cd::server::service (
|
|||||||
enable => true,
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ class puppet_cd::firewall::iptables (
|
|||||||
jump => 'accept',
|
jump => 'accept',
|
||||||
}
|
}
|
||||||
if $pt_use_r10k_webhook == true {
|
if $pt_use_r10k_webhook == true {
|
||||||
firewall { '38088 open port 8088':
|
firewall { '34000 open port 4000':
|
||||||
proto => 'tcp',
|
proto => 'tcp',
|
||||||
dport => '8088',
|
dport => '4000',
|
||||||
jump => 'accept',
|
jump => 'accept',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,5 @@ class puppet_cd::main::config (
|
|||||||
|
|
||||||
if $pt_use_r10k == true {
|
if $pt_use_r10k == true {
|
||||||
include puppet_cd::r10k::install
|
include puppet_cd::r10k::install
|
||||||
include puppet_cd::r10k::webhook
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,6 @@
|
|||||||
# @param [String] pt_r10k_basedir the base directory for r10k.yaml
|
# @param [String] pt_r10k_basedir the base directory for r10k.yaml
|
||||||
# @param [String] pt_r10k_webhook_pkg the packages for the r10k webhook
|
# @param [String] pt_r10k_webhook_pkg the packages for the r10k webhook
|
||||||
# @param [Boolean] pt_manage_user whether to manage the puppet user
|
# @param [Boolean] pt_manage_user whether to manage the puppet user
|
||||||
# @param [String] pt_webhook_secret the secret for the webhook
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class puppet_cd::params (
|
class puppet_cd::params (
|
||||||
|
|
||||||
@@ -98,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 = 'python3-pip',
|
String $pt_r10k_webhook_pkg = 'https://3for.me/jp029', # points to rpm
|
||||||
|
|
||||||
# user settings
|
# user settings
|
||||||
## puppet user
|
## puppet user
|
||||||
@@ -176,7 +175,6 @@ class puppet_cd::params (
|
|||||||
String $pt_r10k_remote = 'git@gitlab.example.net/repo.git',
|
String $pt_r10k_remote = 'git@gitlab.example.net/repo.git',
|
||||||
Boolean $pt_r10k_prefix = false,
|
Boolean $pt_r10k_prefix = false,
|
||||||
String $pt_r10k_basedir = '/etc/puppetlabs/code/environments',
|
String $pt_r10k_basedir = '/etc/puppetlabs/code/environments',
|
||||||
String $pt_webhook_secret = '',
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# facts
|
# facts
|
||||||
@@ -234,16 +232,12 @@ class puppet_cd::params (
|
|||||||
## r10k
|
## r10k
|
||||||
$pt_r10k_file = "${pt_r10k_dir}/r10k.yaml"
|
$pt_r10k_file = "${pt_r10k_dir}/r10k.yaml"
|
||||||
$pt_r10k_erb = 'puppet_cd/r10k/r10k.yaml.erb'
|
$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
|
# service
|
||||||
$pt_server_service = 'puppetserver'
|
$pt_server_service = 'puppetserver'
|
||||||
$pt_agent_service = 'puppet'
|
$pt_agent_service = 'puppet'
|
||||||
$pt_db_service = 'puppetdb'
|
$pt_db_service = 'puppetdb'
|
||||||
|
$pt_webhook_service = 'webhook-go.service'
|
||||||
|
|
||||||
#
|
#
|
||||||
# includes must be last
|
# includes must be last
|
||||||
|
|||||||
@@ -53,5 +53,10 @@ class puppet_cd::r10k::install (
|
|||||||
require => File['r10k_dir'],
|
require => File['r10k_dir'],
|
||||||
content => template($pt_r10k_erb),
|
content => template($pt_r10k_erb),
|
||||||
}
|
}
|
||||||
|
if $pt_use_r10k_webhook == true {
|
||||||
|
package { $pt_r10k_webhook_pkg:
|
||||||
|
ensure => $pt_pkg_ensure,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,69 +0,0 @@
|
|||||||
## puppet_cd::r10k::webhook.pp
|
|
||||||
# Module name: puppet_cd
|
|
||||||
# Author: Arne Teuke (arne_teuke@confdroid)
|
|
||||||
# @summary Class manages r10k webhook settings for the puppet_cd module.
|
|
||||||
###############################################################################
|
|
||||||
class puppet_cd::r10k::webhook (
|
|
||||||
|
|
||||||
) inherits puppet_cd::params {
|
|
||||||
if ($pt_pm_fqdn == $fqdn) and ($pt_use_r10k_webhook == true) {
|
|
||||||
# create the webhook binary
|
|
||||||
file { $pt_r10k_hook_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => bin_t,
|
|
||||||
seluser => unconfined_u,
|
|
||||||
source => 'puppet:///modules/puppet_cd/webhook',
|
|
||||||
}
|
|
||||||
|
|
||||||
# create the webhook config dir
|
|
||||||
file { $pt_r10k_webhook_dir:
|
|
||||||
ensure => directory,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
}
|
|
||||||
|
|
||||||
# create webhook config
|
|
||||||
file { $pt_r10k_hook_config_file:
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($pt_r10k_hook_config_erb),
|
|
||||||
notify => Service['webhook'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# create service config
|
|
||||||
file { $pt_r10k_hook_service_file:
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => systemd_unit_file_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($pt_r10k_hook_service_erb),
|
|
||||||
notify => Service['webhook'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# manage service
|
|
||||||
service { 'webhook':
|
|
||||||
ensure => 'running',
|
|
||||||
hasstatus => true,
|
|
||||||
hasrestart => true,
|
|
||||||
enable => true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -40,4 +40,16 @@ class puppet_cd::server::service (
|
|||||||
enable => true,
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"id": "r10k-deploy",
|
|
||||||
"execute-command": "/usr/local/bin/r10k-wrapper.sh",
|
|
||||||
"command-working-directory": "/etc/puppetlabs/code",
|
|
||||||
"pass-arguments-to-command": [
|
|
||||||
{ "source": "string", "name": "deploy" },
|
|
||||||
{ "source": "string", "name": "environment" },
|
|
||||||
{ "source": "string", "name": "-pv" }
|
|
||||||
],
|
|
||||||
"trigger-rule": {
|
|
||||||
"and": [
|
|
||||||
{
|
|
||||||
"match": {
|
|
||||||
"type": "value",
|
|
||||||
"value": "production",
|
|
||||||
"parameter": {
|
|
||||||
"source": "jsonpath",
|
|
||||||
"name": "$.object_attributes.target_branch"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"match": {
|
|
||||||
"type": "value",
|
|
||||||
"value": "merge_request",
|
|
||||||
"parameter": {
|
|
||||||
"source": "jsonpath",
|
|
||||||
"name": "$.object_kind"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Webhook Service for r10k Deployment
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/local/bin/webhook -hooks <%= @pt_r10k_hook_config_file %> -port 8088
|
|
||||||
Restart=always
|
|
||||||
User=puppet
|
|
||||||
Group=puppet
|
|
||||||
WorkingDirectory=/etc/puppetlabs/code
|
|
||||||
StandardOutput=journal
|
|
||||||
StandardError=journal
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Reference in New Issue
Block a user