Recommit for updates in build 128
This commit is contained in:
@@ -62,8 +62,6 @@
|
|||||||
|
|
||||||
<p><a href="https://jenkins.confdroid.com/job/puppet_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=puppet_cd"></a>|</p>
|
<p><a href="https://jenkins.confdroid.com/job/puppet_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=puppet_cd"></a>|</p>
|
||||||
|
|
||||||
<p>[[<em>TOC</em>]]</p>
|
|
||||||
|
|
||||||
<h2 id="label-Synopsis">Synopsis</h2>
|
<h2 id="label-Synopsis">Synopsis</h2>
|
||||||
|
|
||||||
<p>This Puppet module configures settings a full Puppet environment, i.e. Puppet master, Puppet agents pointed to the master.</p>
|
<p>This Puppet module configures settings a full Puppet environment, i.e. Puppet master, Puppet agents pointed to the master.</p>
|
||||||
|
|||||||
@@ -62,8 +62,6 @@
|
|||||||
|
|
||||||
<p><a href="https://jenkins.confdroid.com/job/puppet_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=puppet_cd"></a>|</p>
|
<p><a href="https://jenkins.confdroid.com/job/puppet_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=puppet_cd"></a>|</p>
|
||||||
|
|
||||||
<p>[[<em>TOC</em>]]</p>
|
|
||||||
|
|
||||||
<h2 id="label-Synopsis">Synopsis</h2>
|
<h2 id="label-Synopsis">Synopsis</h2>
|
||||||
|
|
||||||
<p>This Puppet module configures settings a full Puppet environment, i.e. Puppet master, Puppet agents pointed to the master.</p>
|
<p>This Puppet module configures settings a full Puppet environment, i.e. Puppet master, Puppet agents pointed to the master.</p>
|
||||||
|
|||||||
@@ -1100,6 +1100,78 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>IP address to listen on</p>
|
<p>IP address to listen on</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_enable_tls</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>whether to use tls encryption for the backend</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_pptdb_ca_crt</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'Changeme'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>placeholder for the ca.crt</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_pptdb_server_crt</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'Changeme'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>placeholder for the server.crt</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>pt_pptdb_server_key</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'Changeme'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>placeholder for the server.crt</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -1115,10 +1187,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
64
|
|
||||||
65
|
|
||||||
66
|
|
||||||
67
|
|
||||||
68
|
68
|
||||||
69
|
69
|
||||||
70
|
70
|
||||||
@@ -1255,10 +1323,26 @@
|
|||||||
201
|
201
|
||||||
202
|
202
|
||||||
203
|
203
|
||||||
204</pre>
|
204
|
||||||
|
205
|
||||||
|
206
|
||||||
|
207
|
||||||
|
208
|
||||||
|
209
|
||||||
|
210
|
||||||
|
211
|
||||||
|
212
|
||||||
|
213
|
||||||
|
214
|
||||||
|
215
|
||||||
|
216
|
||||||
|
217
|
||||||
|
218
|
||||||
|
219
|
||||||
|
220</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 68</span>
|
||||||
|
|
||||||
class puppet_cd::params (
|
class puppet_cd::params (
|
||||||
|
|
||||||
@@ -1312,6 +1396,11 @@ class puppet_cd::params (
|
|||||||
String $pt_db_username = 'foobar',
|
String $pt_db_username = 'foobar',
|
||||||
String $pt_db_password = 'foobar',
|
String $pt_db_password = 'foobar',
|
||||||
String $pt_gc_interval = '60',
|
String $pt_gc_interval = '60',
|
||||||
|
Boolean $pt_enable_tls = false,
|
||||||
|
String $pt_pptdb_ca_crt = 'Changeme',
|
||||||
|
String $pt_pptdb_server_crt = 'Changeme',
|
||||||
|
String $pt_pptdb_server_key = 'Changeme',
|
||||||
|
|
||||||
## jetty
|
## jetty
|
||||||
String $pt_http_port = '8080',
|
String $pt_http_port = '8080',
|
||||||
String $pt_https_port = '8081',
|
String $pt_https_port = '8081',
|
||||||
@@ -1354,6 +1443,7 @@ class puppet_cd::params (
|
|||||||
## puppetdb
|
## puppetdb
|
||||||
$pt_puppetdb_dir = '/etc/puppetlabs/puppetdb'
|
$pt_puppetdb_dir = '/etc/puppetlabs/puppetdb'
|
||||||
$pt_puppetdb_conf_dir = "${pt_puppetdb_dir}/conf.d"
|
$pt_puppetdb_conf_dir = "${pt_puppetdb_dir}/conf.d"
|
||||||
|
$pt_pptdb_ssldir = "${pt_puppetdb_dir}/ssl"
|
||||||
|
|
||||||
# files
|
# files
|
||||||
## puppet
|
## puppet
|
||||||
@@ -1391,6 +1481,12 @@ class puppet_cd::params (
|
|||||||
$pt_repl_ini_erb = 'puppet_cd/puppetdb/repl.ini.erb'
|
$pt_repl_ini_erb = 'puppet_cd/puppetdb/repl.ini.erb'
|
||||||
$pt_service_conf_file = '/usr/lib/systemd/system/puppetdb.service'
|
$pt_service_conf_file = '/usr/lib/systemd/system/puppetdb.service'
|
||||||
$pt_service_conf_erb = 'puppet_cd/puppetdb/service.conf.erb'
|
$pt_service_conf_erb = 'puppet_cd/puppetdb/service.conf.erb'
|
||||||
|
$pt_ca_crt_file = "${pt_pptdb_ssldir}/ca.crt"
|
||||||
|
$pt_ca_crt_erb = 'puppet_cd/puppetdb/ca.crt.erb'
|
||||||
|
$pt_server_crt_file = "${pt_pptdb_ssldir}/server.crt"
|
||||||
|
$pt_server_crt_erb = 'puppet_cd/puppetdb/server.crt.erb'
|
||||||
|
$pt_server_key_file = "${pt_pptdb_ssldir}/server.key"
|
||||||
|
$pt_server_key_erb = 'puppet_cd/puppetdb/server.key.erb'
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$pt_server_service = 'puppetserver'
|
$pt_server_service = 'puppetserver'
|
||||||
|
|||||||
@@ -226,7 +226,49 @@
|
|||||||
128
|
128
|
||||||
129
|
129
|
||||||
130
|
130
|
||||||
131</pre>
|
131
|
||||||
|
132
|
||||||
|
133
|
||||||
|
134
|
||||||
|
135
|
||||||
|
136
|
||||||
|
137
|
||||||
|
138
|
||||||
|
139
|
||||||
|
140
|
||||||
|
141
|
||||||
|
142
|
||||||
|
143
|
||||||
|
144
|
||||||
|
145
|
||||||
|
146
|
||||||
|
147
|
||||||
|
148
|
||||||
|
149
|
||||||
|
150
|
||||||
|
151
|
||||||
|
152
|
||||||
|
153
|
||||||
|
154
|
||||||
|
155
|
||||||
|
156
|
||||||
|
157
|
||||||
|
158
|
||||||
|
159
|
||||||
|
160
|
||||||
|
161
|
||||||
|
162
|
||||||
|
163
|
||||||
|
164
|
||||||
|
165
|
||||||
|
166
|
||||||
|
167
|
||||||
|
168
|
||||||
|
169
|
||||||
|
170
|
||||||
|
171
|
||||||
|
172
|
||||||
|
173</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>
|
||||||
@@ -355,6 +397,48 @@ class puppet_cd::puppetdb::files (
|
|||||||
content => template($pt_repl_ini_erb),
|
content => template($pt_repl_ini_erb),
|
||||||
notify => Service[$pt_db_service],
|
notify => Service[$pt_db_service],
|
||||||
}
|
}
|
||||||
|
if $pt_enable_tls == true {
|
||||||
|
# create tls certs
|
||||||
|
## ca.crt
|
||||||
|
file { $pt_ca_crt_file:
|
||||||
|
ensure => file,
|
||||||
|
owner => 'puppetdb',
|
||||||
|
group => 'puppetdb',
|
||||||
|
mode => '0440',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => puppet_etc_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template($pt_ca_crt_erb),
|
||||||
|
notify => Service[$pt_db_service],
|
||||||
|
}
|
||||||
|
## server.crt
|
||||||
|
file { $pt_server_crt_file:
|
||||||
|
ensure => file,
|
||||||
|
owner => 'puppetdb',
|
||||||
|
group => 'puppetdb',
|
||||||
|
mode => '0440',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => puppet_etc_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template($pt_server_crt_erb),
|
||||||
|
notify => Service[$pt_db_service],
|
||||||
|
}
|
||||||
|
## server.key
|
||||||
|
file { $pt_server_key_file:
|
||||||
|
ensure => file,
|
||||||
|
owner => 'puppetdb',
|
||||||
|
group => 'puppetdb',
|
||||||
|
mode => '0440',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => puppet_etc_t,
|
||||||
|
seluser => system_u,
|
||||||
|
content => template($pt_server_key_erb),
|
||||||
|
notify => Service[$pt_db_service],
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user