Recommit for updates in build 104
This commit is contained in:
@@ -103,6 +103,16 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Adirs.html" title="puppet_classes::puppet_cd::puppetdb::dirs (puppet_class)">puppet_cd::puppetdb::dirs</a></span>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Afiles.html" title="puppet_classes::puppet_cd::puppetdb::files (puppet_class)">puppet_cd::puppetdb::files</a></span>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span>
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span>
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,20 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="object_puppet_classes::puppet_cd::puppetdb::dirs" class="even">
|
||||||
|
<div class="item">
|
||||||
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Adirs.html" title="puppet_classes::puppet_cd::puppetdb::dirs (puppet_class)">puppet_cd::puppetdb::dirs</a></span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li id="object_puppet_classes::puppet_cd::puppetdb::files" class="odd">
|
||||||
|
<div class="item">
|
||||||
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Afiles.html" title="puppet_classes::puppet_cd::puppetdb::files (puppet_class)">puppet_cd::puppetdb::files</a></span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::puppet_cd::r10k::install" class="even">
|
<li id="object_puppet_classes::puppet_cd::r10k::install" class="even">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span>
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Ar10k_3A_3Ainstall.html" title="puppet_classes::puppet_cd::r10k::install (puppet_class)">puppet_cd::r10k::install</a></span>
|
||||||
|
|||||||
@@ -77,6 +77,10 @@
|
|||||||
|
|
||||||
<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_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_3Aserver_3A_3Aservice.html" title="puppet_classes::puppet_cd::server::service (puppet_class)">puppet_cd::server::service</a></span><br/>
|
<span class='object_link'><a href="puppet_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::puppet_cd::server::service (puppet_class)">puppet_cd::server::service</a></span><br/>
|
||||||
|
|
||||||
<span class='object_link'><a href="puppet_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::puppet_cd::firewall::iptables (puppet_class)">puppet_cd::firewall::iptables</a></span><br/>
|
<span class='object_link'><a href="puppet_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::puppet_cd::firewall::iptables (puppet_class)">puppet_cd::firewall::iptables</a></span><br/>
|
||||||
@@ -1231,7 +1235,27 @@
|
|||||||
181
|
181
|
||||||
182
|
182
|
||||||
183
|
183
|
||||||
184</pre>
|
184
|
||||||
|
185
|
||||||
|
186
|
||||||
|
187
|
||||||
|
188
|
||||||
|
189
|
||||||
|
190
|
||||||
|
191
|
||||||
|
192
|
||||||
|
193
|
||||||
|
194
|
||||||
|
195
|
||||||
|
196
|
||||||
|
197
|
||||||
|
198
|
||||||
|
199
|
||||||
|
200
|
||||||
|
201
|
||||||
|
202
|
||||||
|
203
|
||||||
|
204</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 64</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 64</span>
|
||||||
@@ -1324,10 +1348,12 @@ class puppet_cd::params (
|
|||||||
$pt_rundir_master = '/var/run/puppetlabs/puppetserver'
|
$pt_rundir_master = '/var/run/puppetlabs/puppetserver'
|
||||||
$pt_vardir = '/opt/puppetlabs/puppet/cache'
|
$pt_vardir = '/opt/puppetlabs/puppet/cache'
|
||||||
$pt_vardir_master = '/opt/puppetlabs/server/data/puppetserver'
|
$pt_vardir_master = '/opt/puppetlabs/server/data/puppetserver'
|
||||||
|
|
||||||
## r10k
|
## r10k
|
||||||
$pt_r10k_dir = "${pt_main_dir}/r10k"
|
$pt_r10k_dir = "${pt_main_dir}/r10k"
|
||||||
$pt_r10k_webhook_dir = '/etc/r10k-webhook'
|
$pt_r10k_webhook_dir = '/etc/r10k-webhook'
|
||||||
|
## puppetdb
|
||||||
|
$pt_puppetdb_dir = '/etc/puppetlabs/puppetdb'
|
||||||
|
$pt_puppetdb_conf_dir = "${pt_puppetdb_dir}/conf.d"
|
||||||
|
|
||||||
# files
|
# files
|
||||||
## puppet
|
## puppet
|
||||||
@@ -1340,13 +1366,31 @@ class puppet_cd::params (
|
|||||||
$pt_routes_erb = 'puppet_cd/puppetdb/routes.yaml.erb'
|
$pt_routes_erb = 'puppet_cd/puppetdb/routes.yaml.erb'
|
||||||
$pt_node_rb_file = "${pt_puppetdir}/node.rb"
|
$pt_node_rb_file = "${pt_puppetdir}/node.rb"
|
||||||
$pt_node_rb_erb = 'puppet_cd/puppetdb/node.rb.erb'
|
$pt_node_rb_erb = 'puppet_cd/puppetdb/node.rb.erb'
|
||||||
|
|
||||||
## 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_webhook_link = 'ln -sf /usr/local/share/gems/gems/r10k_gitlab_webhook-0.1.3/bin/r10k_gitlab_webhook /usr/bin/'
|
$pt_webhook_link = 'ln -sf /usr/local/share/gems/gems/r10k_gitlab_webhook-0.1.3/bin/r10k_gitlab_webhook /usr/bin/'
|
||||||
$pt_webhook_service_file = '/etc/systemd/system/r10k_gitlab_webhook.service'
|
$pt_webhook_service_file = '/etc/systemd/system/r10k_gitlab_webhook.service'
|
||||||
$pt_webhook_service_erb = 'puppet_cd/r10k/r10k_webhook_service.erb'
|
$pt_webhook_service_erb = 'puppet_cd/r10k/r10k_webhook_service.erb'
|
||||||
|
## puppetdb
|
||||||
|
$pt_bootstrap_conf_file = "${pt_puppetdb_dir}/bootstrap.cfg"
|
||||||
|
$pt_bootstrap_conf_erb = 'puppet_cd/puppetdb/bootstrap.cfg.erb'
|
||||||
|
$pt_logback_conf_file = "${pt_puppetdb_dir}/logback.xml"
|
||||||
|
$pt_logback_conf_erb = 'puppet_cd/puppetdb/logback.xml.erb'
|
||||||
|
$pt_logging_conf_file = "${pt_puppetdb_dir}/request-logging.xml"
|
||||||
|
$pt_logging_conf_erb = 'puppet_cd/puppetdb/request_logging.xml.erb'
|
||||||
|
$pt_auth_conf_file = "${pt_puppetdb_conf_dir}/auth.conf"
|
||||||
|
$pt_auth_conf_erb = 'puppet_cd/puppetdb/auth.conf.erb'
|
||||||
|
$pt_config_ini_file = "${pt_puppetdb_conf_dir}/config.ini"
|
||||||
|
$pt_config_ini_erb = 'puppet_cd/puppetdb/config.ini.erb'
|
||||||
|
$pt_db_ini_file = "${pt_puppetdb_conf_dir}/database.ini"
|
||||||
|
$pt_db_ini_erb = 'puppet_cd/puppetdb/database.ini.erb'
|
||||||
|
$pt_jetty_ini_file = "${pt_puppetdb_conf_dir}/jetty.ini"
|
||||||
|
$pt_jetty_ini_erb = 'puppet_cd/puppetdb/jetty.ini.erb'
|
||||||
|
$pt_repl_ini_file = "${pt_puppetdb_conf_dir}/repl.ini"
|
||||||
|
$pt_repl_ini_erb = 'puppet_cd/puppetdb/repl.ini.erb'
|
||||||
|
$pt_service_conf_file = '/usr/lib/systemd/system/puppetdb.service'
|
||||||
|
$pt_service_conf_erb = 'puppet_cd/puppetdb/service.conf.erb'
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$pt_server_service = 'puppetserver'
|
$pt_server_service = 'puppetserver'
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
Class manages puppetdb directories
|
Class manages directories for the puppetdb section
|
||||||
|
|
||||||
<h2>Overview</h2>
|
<h2>Overview</h2>
|
||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
@@ -129,37 +129,7 @@
|
|||||||
31
|
31
|
||||||
32
|
32
|
||||||
33
|
33
|
||||||
34
|
34</pre>
|
||||||
35
|
|
||||||
36
|
|
||||||
37
|
|
||||||
38
|
|
||||||
39
|
|
||||||
40
|
|
||||||
41
|
|
||||||
42
|
|
||||||
43
|
|
||||||
44
|
|
||||||
45
|
|
||||||
46
|
|
||||||
47
|
|
||||||
48
|
|
||||||
49
|
|
||||||
50
|
|
||||||
51
|
|
||||||
52
|
|
||||||
53
|
|
||||||
54
|
|
||||||
55
|
|
||||||
56
|
|
||||||
57
|
|
||||||
58
|
|
||||||
59
|
|
||||||
60
|
|
||||||
61
|
|
||||||
62
|
|
||||||
63
|
|
||||||
64</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/puppetdb/dirs.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/puppetdb/dirs.pp', line 6</span>
|
||||||
@@ -167,58 +137,28 @@
|
|||||||
class puppet_cd::puppetdb::dirs (
|
class puppet_cd::puppetdb::dirs (
|
||||||
|
|
||||||
) inherits puppet_cd::params {
|
) inherits puppet_cd::params {
|
||||||
if ($fqdn == $pt_db_fqdn) and ($pt_use_puppetdb == true) {
|
if ($pt_use_puppetdb == true) and ($pt_puppetdb_fqdn == $fqdn) {
|
||||||
require puppet_cd::main::install
|
require puppet_cd::main::install
|
||||||
|
|
||||||
# main directory
|
file { $pt_puppetdb_dir:
|
||||||
file { $pt_puppetdb_main:
|
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
path => $pt_puppetdb_main,
|
owner => 'puppetdb',
|
||||||
owner => $pt_db_user,
|
group => 'puppetdb',
|
||||||
group => $pt_db_user,
|
|
||||||
mode => '0750',
|
mode => '0750',
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
}
|
}
|
||||||
|
|
||||||
# conf.d directory
|
file { $pt_puppetdb_conf_dir:
|
||||||
file { $pt_puppetdb_conf_d:
|
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
path => $pt_puppetdb_conf_d,
|
owner => 'root',
|
||||||
owner => $pt_db_user,
|
group => 'root',
|
||||||
group => $pt_db_user,
|
mode => '0755',
|
||||||
mode => '0750',
|
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
|
||||||
}
|
|
||||||
|
|
||||||
# ssl directory
|
|
||||||
file { $pt_puppetdb_ssl:
|
|
||||||
ensure => directory,
|
|
||||||
path => $pt_puppetdb_ssl,
|
|
||||||
owner => $pt_db_user,
|
|
||||||
group => $pt_db_user,
|
|
||||||
mode => '0750',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
}
|
|
||||||
|
|
||||||
# log dir
|
|
||||||
file { $pt_puppetdb_log:
|
|
||||||
ensure => directory,
|
|
||||||
path => $pt_puppetdb_log,
|
|
||||||
owner => $pt_db_user,
|
|
||||||
group => $pt_db_user,
|
|
||||||
mode => '0700',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => var_log_t,
|
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
Class manages puppetdb files
|
Class manages config files for the puppetdb section
|
||||||
|
|
||||||
<h2>Overview</h2>
|
<h2>Overview</h2>
|
||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
@@ -212,7 +212,21 @@
|
|||||||
114
|
114
|
||||||
115
|
115
|
||||||
116
|
116
|
||||||
117</pre>
|
117
|
||||||
|
118
|
||||||
|
119
|
||||||
|
120
|
||||||
|
121
|
||||||
|
122
|
||||||
|
123
|
||||||
|
124
|
||||||
|
125
|
||||||
|
126
|
||||||
|
127
|
||||||
|
128
|
||||||
|
129
|
||||||
|
130
|
||||||
|
131</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/puppetdb/files.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/puppetdb/files.pp', line 6</span>
|
||||||
@@ -220,13 +234,12 @@
|
|||||||
class puppet_cd::puppetdb::files (
|
class puppet_cd::puppetdb::files (
|
||||||
|
|
||||||
) inherits puppet_cd::params {
|
) inherits puppet_cd::params {
|
||||||
if ($fqdn == $pt_db_fqdn) and ($pt_use_puppetdb == true) {
|
if ($pt_use_puppetdb == true) and ($pt_puppetdb_fqdn == $fqdn) {
|
||||||
require puppet_cd::puppetdb::dirs
|
require puppet_cd::puppetdb::dirs
|
||||||
|
|
||||||
# bootstrap.cfg
|
# bootstrap.cfg
|
||||||
file { $pt_bootstrap_conf:
|
file { $pt_bootstrap_conf_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $pt_bootstrap_conf,
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -234,29 +247,12 @@ class puppet_cd::puppetdb::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => puppet_etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($pt_bootstrap_erb),
|
content => template($pt_bootstrap_conf_erb),
|
||||||
notify => Service[$pt_db_service],
|
notify => Service[$pt_db_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
# requestlogging.xml
|
|
||||||
file { $pt_request_logging_conf:
|
|
||||||
ensure => file,
|
|
||||||
path => $pt_request_logging_conf,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => puppet_etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($pt_request_logging_erb),
|
|
||||||
notify => Service[$pt_db_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# logback.xml
|
# logback.xml
|
||||||
file { $pt_logback_conf:
|
file { $pt_logback_conf_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $pt_logback_conf,
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -264,14 +260,52 @@ class puppet_cd::puppetdb::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => puppet_etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($pt_logback_erb),
|
content => template($pt_logback_conf_erb),
|
||||||
|
notify => Service[$pt_db_service],
|
||||||
|
}
|
||||||
|
# request-logging.xml
|
||||||
|
file { $pt_logging_conf_file:
|
||||||
|
ensure => file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => puppet_etc_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template($pt_logging_conf_erb),
|
||||||
|
notify => Service[$pt_db_service],
|
||||||
|
}
|
||||||
|
# service config
|
||||||
|
file { $pt_service_conf_file:
|
||||||
|
ensure => file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => systemd_unit_file_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template($pt_service_conf_erb),
|
||||||
|
notify => Service[$pt_db_service],
|
||||||
|
}
|
||||||
|
# conf.d files
|
||||||
|
## auth.conf
|
||||||
|
file { $pt_auth_conf_file:
|
||||||
|
ensure => file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => puppet_etc_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template($pt_auth_conf_erb),
|
||||||
notify => Service[$pt_db_service],
|
notify => Service[$pt_db_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
# config.ini
|
# config.ini
|
||||||
file { $pt_puppetdb_config_ini:
|
file { $pt_config_ini_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $pt_puppetdb_config_ini,
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -279,14 +313,12 @@ class puppet_cd::puppetdb::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => puppet_etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($pt_puppetdb_config_erb),
|
content => template($pt_config_ini_erb),
|
||||||
notify => Service[$pt_db_service],
|
notify => Service[$pt_db_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
# database.ini
|
# database.ini
|
||||||
file { $pt_puppetdb_database_ini:
|
file { $pt_db_ini_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $pt_puppetdb_database_ini,
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -294,14 +326,12 @@ class puppet_cd::puppetdb::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => puppet_etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($pt_puppetdb_database_erb),
|
content => template($pt_db_ini_erb),
|
||||||
notify => Service[$pt_db_service],
|
notify => Service[$pt_db_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
# jetty.ini
|
# jetty.ini
|
||||||
file { $pt_puppetdb_jetty_ini :
|
file { $pt_jetty_ini_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $pt_puppetdb_jetty_ini ,
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -309,14 +339,12 @@ class puppet_cd::puppetdb::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => puppet_etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($pt_puppetdb_jetty_erb),
|
content => template($pt_jetty_ini_erb),
|
||||||
notify => Service[$pt_db_service],
|
notify => Service[$pt_db_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
# repl.ini
|
# repl.ini
|
||||||
file { $pt_puppetdb_repl_ini:
|
file { $pt_repl_ini_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $pt_puppetdb_repl_ini,
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
@@ -324,7 +352,7 @@ class puppet_cd::puppetdb::files (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => puppet_etc_t,
|
seltype => puppet_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
content => template($pt_puppetdb_repl_erb),
|
content => template($pt_repl_ini_erb),
|
||||||
notify => Service[$pt_db_service],
|
notify => Service[$pt_db_service],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,7 +147,8 @@
|
|||||||
49
|
49
|
||||||
50
|
50
|
||||||
51
|
51
|
||||||
52</pre>
|
52
|
||||||
|
53</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>
|
||||||
@@ -190,6 +191,7 @@ class puppet_cd::server::service (
|
|||||||
|
|
||||||
if ($pt_use_puppetdb == true) and ($pt_puppetdb_fqdn == $fqdn) {
|
if ($pt_use_puppetdb == true) and ($pt_puppetdb_fqdn == $fqdn) {
|
||||||
require puppet_cd::firewall::iptables
|
require puppet_cd::firewall::iptables
|
||||||
|
require puppet_cd::puppetdb::files
|
||||||
|
|
||||||
service { $pt_db_service:
|
service { $pt_db_service:
|
||||||
ensure => running,
|
ensure => running,
|
||||||
|
|||||||
Reference in New Issue
Block a user