Recommit for updates in build 74
This commit is contained in:
@@ -93,11 +93,6 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::puppet_cd::main::install (puppet_class)">puppet_cd::main::install</a></span>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Amain_3A_3Auser.html" title="puppet_classes::puppet_cd::main::user (puppet_class)">puppet_cd::main::user</a></span>
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Amain_3A_3Auser.html" title="puppet_classes::puppet_cd::main::user (puppet_class)">puppet_cd::main::user</a></span>
|
||||||
|
|
||||||
@@ -108,21 +103,6 @@
|
|||||||
|
|
||||||
</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>
|
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Aservice.html" title="puppet_classes::puppet_cd::puppetdb::service (puppet_class)">puppet_cd::puppetdb::service</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>
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,9 @@
|
|||||||
|
|
||||||
<h2 id="label-Synopsis">Synopsis</h2>
|
<h2 id="label-Synopsis">Synopsis</h2>
|
||||||
|
|
||||||
<p>This Puppet module configures settings for Puppet master and agents, PuppetDB and R10k, the full bundle. The syntax is specifically for Puppet Core 8 and Rocky 9, although might work elsewhere as well. This module is also designed to work with External Node Classifiers (ENC), for instance Foreman.</p>
|
<p>This Puppet module configures settings for Puppet master , agents and R10k, the full bundle. Puppetdb has been outsourced to a <a href="https://gitlab.confdroid.com/puppet/puppetdb_cd">module</a> on its own, due to complexity</p>
|
||||||
|
|
||||||
|
<p>The syntax is specifically for Puppet Core 8 and Rocky 9, although might work elsewhere as well. This module is also designed to work with External Node Classifiers (ENC), for instance Foreman.</p>
|
||||||
|
|
||||||
<h2 id="label-WARNING">WARNING</h2>
|
<h2 id="label-WARNING">WARNING</h2>
|
||||||
|
|
||||||
@@ -76,8 +78,6 @@
|
|||||||
<ul><li>
|
<ul><li>
|
||||||
<p>if the host FQDN matches your specified Puppet master via <code>$pt_pm_fqdn</code>, it installs and configures a puppetmaster. On your puppetmaster, If you set <code>$pt_use_r10k</code>to <code>true</code>, it also installs r10k to connect to a control repo and manage the code available to clients via Puppetfile. If you set <code>$pt_use_r10k_webhook</code>to <code>true</code>, it also installs a simple webhook listener to watch for post_hooks from gitlab, and triggers the r10k deployment.</p>
|
<p>if the host FQDN matches your specified Puppet master via <code>$pt_pm_fqdn</code>, it installs and configures a puppetmaster. On your puppetmaster, If you set <code>$pt_use_r10k</code>to <code>true</code>, it also installs r10k to connect to a control repo and manage the code available to clients via Puppetfile. If you set <code>$pt_use_r10k_webhook</code>to <code>true</code>, it also installs a simple webhook listener to watch for post_hooks from gitlab, and triggers the r10k deployment.</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>if the host FQDN matches your specified puppetdb host via <code>$pt_db_fqdn</code>, Puppetdb is installed and added to the puppetmaster config. Settings for the (external) postgreSQL database are also configured.</p>
|
|
||||||
</li><li>
|
|
||||||
<p>open firewall ports depending on fqdn choices</p>
|
<p>open firewall ports depending on fqdn choices</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>start services as required</p>
|
<p>start services as required</p>
|
||||||
|
|||||||
@@ -66,7 +66,9 @@
|
|||||||
|
|
||||||
<h2 id="label-Synopsis">Synopsis</h2>
|
<h2 id="label-Synopsis">Synopsis</h2>
|
||||||
|
|
||||||
<p>This Puppet module configures settings for Puppet master and agents, PuppetDB and R10k, the full bundle. The syntax is specifically for Puppet Core 8 and Rocky 9, although might work elsewhere as well. This module is also designed to work with External Node Classifiers (ENC), for instance Foreman.</p>
|
<p>This Puppet module configures settings for Puppet master , agents and R10k, the full bundle. Puppetdb has been outsourced to a <a href="https://gitlab.confdroid.com/puppet/puppetdb_cd">module</a> on its own, due to complexity</p>
|
||||||
|
|
||||||
|
<p>The syntax is specifically for Puppet Core 8 and Rocky 9, although might work elsewhere as well. This module is also designed to work with External Node Classifiers (ENC), for instance Foreman.</p>
|
||||||
|
|
||||||
<h2 id="label-WARNING">WARNING</h2>
|
<h2 id="label-WARNING">WARNING</h2>
|
||||||
|
|
||||||
@@ -76,8 +78,6 @@
|
|||||||
<ul><li>
|
<ul><li>
|
||||||
<p>if the host FQDN matches your specified Puppet master via <code>$pt_pm_fqdn</code>, it installs and configures a puppetmaster. On your puppetmaster, If you set <code>$pt_use_r10k</code>to <code>true</code>, it also installs r10k to connect to a control repo and manage the code available to clients via Puppetfile. If you set <code>$pt_use_r10k_webhook</code>to <code>true</code>, it also installs a simple webhook listener to watch for post_hooks from gitlab, and triggers the r10k deployment.</p>
|
<p>if the host FQDN matches your specified Puppet master via <code>$pt_pm_fqdn</code>, it installs and configures a puppetmaster. On your puppetmaster, If you set <code>$pt_use_r10k</code>to <code>true</code>, it also installs r10k to connect to a control repo and manage the code available to clients via Puppetfile. If you set <code>$pt_use_r10k_webhook</code>to <code>true</code>, it also installs a simple webhook listener to watch for post_hooks from gitlab, and triggers the r10k deployment.</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>if the host FQDN matches your specified puppetdb host via <code>$pt_db_fqdn</code>, Puppetdb is installed and added to the puppetmaster config. Settings for the (external) postgreSQL database are also configured.</p>
|
|
||||||
</li><li>
|
|
||||||
<p>open firewall ports depending on fqdn choices</p>
|
<p>open firewall ports depending on fqdn choices</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>start services as required</p>
|
<p>start services as required</p>
|
||||||
|
|||||||
@@ -71,48 +71,20 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::puppet_cd::main::install" class="even">
|
<li id="object_puppet_classes::puppet_cd::main::user" class="even">
|
||||||
<div class="item">
|
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::puppet_cd::main::install (puppet_class)">puppet_cd::main::install</a></span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::puppet_cd::main::user" class="odd">
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Amain_3A_3Auser.html" title="puppet_classes::puppet_cd::main::user (puppet_class)">puppet_cd::main::user</a></span>
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Amain_3A_3Auser.html" title="puppet_classes::puppet_cd::main::user (puppet_class)">puppet_cd::main::user</a></span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::puppet_cd::params" class="even">
|
<li id="object_puppet_classes::puppet_cd::params" class="odd">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Aparams.html" title="puppet_classes::puppet_cd::params (puppet_class)">puppet_cd::params</a></span>
|
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Aparams.html" title="puppet_classes::puppet_cd::params (puppet_class)">puppet_cd::params</a></span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::puppet_cd::puppetdb::dirs" class="odd">
|
|
||||||
<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="even">
|
|
||||||
<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::puppetdb::service" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<span class='object_link'><a href="puppet_classes/puppet_cd_3A_3Apuppetdb_3A_3Aservice.html" title="puppet_classes::puppet_cd::puppetdb::service (puppet_class)">puppet_cd::puppetdb::service</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>
|
||||||
|
|||||||
@@ -109,11 +109,7 @@
|
|||||||
11
|
11
|
||||||
12
|
12
|
||||||
13
|
13
|
||||||
14
|
14</pre>
|
||||||
15
|
|
||||||
16
|
|
||||||
17
|
|
||||||
18</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>
|
||||||
@@ -123,10 +119,6 @@ class puppet_cd::main::config (
|
|||||||
) inherits puppet_cd::params {
|
) inherits puppet_cd::params {
|
||||||
include puppet_cd::server::service
|
include puppet_cd::server::service
|
||||||
|
|
||||||
if $pt_use_puppetdb == true {
|
|
||||||
include puppet_cd::puppetdb::service
|
|
||||||
}
|
|
||||||
|
|
||||||
if $pt_use_r10k == true {
|
if $pt_use_r10k == true {
|
||||||
include puppet_cd::r10k::install
|
include puppet_cd::r10k::install
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,30 +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</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||||
@@ -185,29 +162,6 @@ class puppet_cd::main::files (
|
|||||||
notify => Service[$pt_agent_service,$pt_server_service],
|
notify => Service[$pt_agent_service,$pt_server_service],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if $pt_use_puppetdb == true {
|
|
||||||
file { $pt_puppetdb_conf_file:
|
|
||||||
ensure => file,
|
|
||||||
path => $pt_puppetdb_conf_file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
content => template($pt_puppetdb_conf_erb),
|
|
||||||
# notify => Service[$pt_agent_service,$pt_server_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# fix service file syslog vs journald
|
|
||||||
file { $pt_puppetdb_service_file:
|
|
||||||
ensure => file,
|
|
||||||
path => $pt_puppetdb_service_file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
content => template($pt_puppetdb_service_erb),
|
|
||||||
notify => Service[$pt_db_service],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -122,26 +122,7 @@
|
|||||||
24
|
24
|
||||||
25
|
25
|
||||||
26
|
26
|
||||||
27
|
27</pre>
|
||||||
28
|
|
||||||
29
|
|
||||||
30
|
|
||||||
31
|
|
||||||
32
|
|
||||||
33
|
|
||||||
34
|
|
||||||
35
|
|
||||||
36
|
|
||||||
37
|
|
||||||
38
|
|
||||||
39
|
|
||||||
40
|
|
||||||
41
|
|
||||||
42
|
|
||||||
43
|
|
||||||
44
|
|
||||||
45
|
|
||||||
46</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/user.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/user.pp', line 6</span>
|
||||||
@@ -167,25 +148,6 @@ class puppet_cd::main::user (
|
|||||||
allowdupe => false,
|
allowdupe => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($fqdn == $pt_db_fqdn) and ($pt_manage_db_user == true) {
|
|
||||||
user { $pt_db_user:
|
|
||||||
ensure => present,
|
|
||||||
name => $pt_db_user,
|
|
||||||
allowdupe => false,
|
|
||||||
comment => $pt_db_user_comment,
|
|
||||||
gid => $pt_db_user,
|
|
||||||
managehome => true,
|
|
||||||
home => $pt_db_user_home,
|
|
||||||
shell => $pt_db_user_shell,
|
|
||||||
}
|
|
||||||
|
|
||||||
group { $pt_db_user:
|
|
||||||
ensure => present,
|
|
||||||
name => $pt_db_user,
|
|
||||||
allowdupe => false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -75,18 +75,10 @@
|
|||||||
|
|
||||||
<span class='object_link'><a href="puppet_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::puppet_cd::main::config (puppet_class)">puppet_cd::main::config</a></span><br/>
|
<span class='object_link'><a href="puppet_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::puppet_cd::main::config (puppet_class)">puppet_cd::main::config</a></span><br/>
|
||||||
|
|
||||||
<span class='object_link'><a href="puppet_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::puppet_cd::main::install (puppet_class)">puppet_cd::main::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_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_3Apuppetdb_3A_3Aservice.html" title="puppet_classes::puppet_cd::puppetdb::service (puppet_class)">puppet_cd::puppetdb::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/>
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
@@ -162,8 +154,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'puppetdb.example.net'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -270,8 +260,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'8080'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -288,8 +276,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'8081'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -306,8 +292,6 @@
|
|||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -396,8 +380,6 @@
|
|||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -414,8 +396,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'puppetdb'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -432,8 +412,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'PuppetDB daemon'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -450,8 +428,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'/opt/puppetlabs/server/data/puppetdb'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -468,8 +444,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'/sbin/nologin'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -486,8 +460,6 @@
|
|||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -990,8 +962,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'200MB'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1008,8 +978,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'90'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1026,8 +994,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'1GB'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1044,8 +1010,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'4'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1062,8 +1026,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'4'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1080,8 +1042,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'//localhost:5432/puppetdb'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1098,8 +1058,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'foobar'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1116,8 +1074,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'foobar'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1134,8 +1090,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'60'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1152,8 +1106,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1170,8 +1122,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'0.0.0.0/0'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1188,8 +1138,6 @@
|
|||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1206,8 +1154,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'0.0.0.0'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1224,8 +1170,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'0.0.0.0'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1242,8 +1186,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/ssl/private.pem'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1260,8 +1202,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/ssl/public.pem'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1278,8 +1218,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/ssl/ca.pem'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1296,8 +1234,6 @@
|
|||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1314,8 +1250,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'/etc/puppetlabs/puppetdb/request-logging.xml'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1332,8 +1266,6 @@
|
|||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1350,8 +1282,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'8082'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1368,8 +1298,6 @@
|
|||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'127.0.0.1'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
@@ -1638,65 +1566,7 @@
|
|||||||
191
|
191
|
||||||
192
|
192
|
||||||
193
|
193
|
||||||
194
|
194</pre>
|
||||||
195
|
|
||||||
196
|
|
||||||
197
|
|
||||||
198
|
|
||||||
199
|
|
||||||
200
|
|
||||||
201
|
|
||||||
202
|
|
||||||
203
|
|
||||||
204
|
|
||||||
205
|
|
||||||
206
|
|
||||||
207
|
|
||||||
208
|
|
||||||
209
|
|
||||||
210
|
|
||||||
211
|
|
||||||
212
|
|
||||||
213
|
|
||||||
214
|
|
||||||
215
|
|
||||||
216
|
|
||||||
217
|
|
||||||
218
|
|
||||||
219
|
|
||||||
220
|
|
||||||
221
|
|
||||||
222
|
|
||||||
223
|
|
||||||
224
|
|
||||||
225
|
|
||||||
226
|
|
||||||
227
|
|
||||||
228
|
|
||||||
229
|
|
||||||
230
|
|
||||||
231
|
|
||||||
232
|
|
||||||
233
|
|
||||||
234
|
|
||||||
235
|
|
||||||
236
|
|
||||||
237
|
|
||||||
238
|
|
||||||
239
|
|
||||||
240
|
|
||||||
241
|
|
||||||
242
|
|
||||||
243
|
|
||||||
244
|
|
||||||
245
|
|
||||||
246
|
|
||||||
247
|
|
||||||
248
|
|
||||||
249
|
|
||||||
250
|
|
||||||
251
|
|
||||||
252</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 89</span>
|
||||||
@@ -1705,7 +1575,6 @@ class puppet_cd::params (
|
|||||||
|
|
||||||
Boolean $pt_manage_fw = true,
|
Boolean $pt_manage_fw = true,
|
||||||
String $pt_pm_fqdn = 'puppetmaster.example.net',
|
String $pt_pm_fqdn = 'puppetmaster.example.net',
|
||||||
String $pt_db_fqdn = 'puppetdb.example.net',
|
|
||||||
|
|
||||||
# installation
|
# installation
|
||||||
String $pt_pkg_ensure = 'latest',
|
String $pt_pkg_ensure = 'latest',
|
||||||
@@ -1722,12 +1591,7 @@ class puppet_cd::params (
|
|||||||
String $pt_user_comment = 'puppetserver daemon',
|
String $pt_user_comment = 'puppetserver daemon',
|
||||||
String $pt_user_home = '/opt/puppetlabs/server/data/puppetserver',
|
String $pt_user_home = '/opt/puppetlabs/server/data/puppetserver',
|
||||||
String $pt_user_shell = '/sbin/nologin',
|
String $pt_user_shell = '/sbin/nologin',
|
||||||
## puppetdb user
|
|
||||||
Boolean $pt_manage_db_user = false,
|
|
||||||
String $pt_db_user = 'puppetdb',
|
|
||||||
String $pt_db_user_comment = 'PuppetDB daemon',
|
|
||||||
String $pt_db_user_home = '/opt/puppetlabs/server/data/puppetdb',
|
|
||||||
String $pt_db_user_shell = '/sbin/nologin',
|
|
||||||
# templates
|
# templates
|
||||||
## puppet
|
## puppet
|
||||||
String $pt_environment = 'production',
|
String $pt_environment = 'production',
|
||||||
@@ -1757,33 +1621,6 @@ class puppet_cd::params (
|
|||||||
String $pt_storeconfigs_backend = 'puppetdb',
|
String $pt_storeconfigs_backend = 'puppetdb',
|
||||||
String $pt_parser = 'current',
|
String $pt_parser = 'current',
|
||||||
Boolean $pt_cert_revocation = true,
|
Boolean $pt_cert_revocation = true,
|
||||||
## puppetdb
|
|
||||||
Boolean $pt_use_puppetdb = false,
|
|
||||||
String $pt_logging_max_file_size = '200MB',
|
|
||||||
String $pt_logging_max_history = '90',
|
|
||||||
String $pt_logging_total_size = '1GB',
|
|
||||||
String $pt_com_proc_threads = '4',
|
|
||||||
String $pt_concurrent_writes = '4',
|
|
||||||
String $pt_db_subname = '//localhost:5432/puppetdb',
|
|
||||||
String $pt_db_username = 'foobar',
|
|
||||||
String $pt_db_password = 'foobar',
|
|
||||||
String $pt_gc_interval = '60',
|
|
||||||
String $pt_log_slow_statements = '10',
|
|
||||||
String $pt_no_ssl_port = '8080',
|
|
||||||
String $pt_ssl_port = '8081',
|
|
||||||
Boolean $pt_use_ssl_only = true,
|
|
||||||
String $pt_puppetdb_source_lan = '0.0.0.0/0',
|
|
||||||
Boolean $pt_soft_write_failure = false,
|
|
||||||
String $pt_no_ssl_host = '0.0.0.0',
|
|
||||||
String $pt_ssl_host = '0.0.0.0',
|
|
||||||
String $pt_ssl_key = '/etc/puppetlabs/puppetdb/ssl/private.pem',
|
|
||||||
String $pt_ssl_cert = '/etc/puppetlabs/puppetdb/ssl/public.pem',
|
|
||||||
String $pt_ssl_ca_cert = '/etc/puppetlabs/puppetdb/ssl/ca.pem',
|
|
||||||
Boolean $pt_log_access = false,
|
|
||||||
String $pt_access_log_config = '/etc/puppetlabs/puppetdb/request-logging.xml',
|
|
||||||
Boolean $pt_enable_repl = false,
|
|
||||||
String $pt_repl_port = '8082',
|
|
||||||
String $pt_repl_host = '127.0.0.1',
|
|
||||||
|
|
||||||
# r10k
|
# r10k
|
||||||
Boolean $pt_use_r10k = false,
|
Boolean $pt_use_r10k = false,
|
||||||
@@ -1812,12 +1649,7 @@ 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'
|
||||||
## puppetdb
|
|
||||||
$pt_puppetdb_main = '/etc/puppetlabs/puppetdb'
|
|
||||||
$pt_puppetdb_conf_d = "${pt_puppetdb_main}/conf.d"
|
|
||||||
$pt_puppetdb_ssl = "${pt_puppetdb_main}/ssl"
|
|
||||||
$pt_puppetdb_log = '/var/log/puppetlabs/puppetdb'
|
|
||||||
$pt_puppetdb_var_dir = '/opt/puppetlabs/server/data/puppetdb'
|
|
||||||
## 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'
|
||||||
@@ -1828,26 +1660,7 @@ class puppet_cd::params (
|
|||||||
$pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
|
$pt_puppet_conf_erb = 'puppet_cd/puppet.conf.erb'
|
||||||
$pt_agent_conf_erb = 'puppet_cd/agent.conf.erb'
|
$pt_agent_conf_erb = 'puppet_cd/agent.conf.erb'
|
||||||
$pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
|
$pt_hiera_config = "${pt_puppetdir}/hiera.yaml"
|
||||||
## puppetdb
|
|
||||||
$pt_bootstrap_conf = "${pt_puppetdb_main}/bootstrap.cfg"
|
|
||||||
$pt_bootstrap_erb = 'puppet_cd/puppetdb/bootstrap.cfg.erb'
|
|
||||||
$pt_puppetdb_access_log = "${pt_puppetdb_log}/puppetdb-access"
|
|
||||||
$pt_request_logging_conf = "${pt_puppetdb_main}/request-logging.xml"
|
|
||||||
$pt_request_logging_erb = 'puppet_cd/puppetdb/request_logging.xml.erb'
|
|
||||||
$pt_logback_conf = "${pt_puppetdb_main}/logback.xml"
|
|
||||||
$pt_logback_erb = 'puppet_cd/puppetdb/logback.xml.erb'
|
|
||||||
$pt_puppetdb_config_ini = "${pt_puppetdb_conf_d}/config.ini"
|
|
||||||
$pt_puppetdb_config_erb = 'puppet_cd/puppetdb/config.ini.erb'
|
|
||||||
$pt_puppetdb_database_ini = "${pt_puppetdb_conf_d}/database.ini"
|
|
||||||
$pt_puppetdb_database_erb = 'puppet_cd/puppetdb/database.ini.erb'
|
|
||||||
$pt_puppetdb_jetty_ini = "${pt_puppetdb_conf_d}/jetty.ini"
|
|
||||||
$pt_puppetdb_jetty_erb = 'puppet_cd/puppetdb/jetty.ini.erb'
|
|
||||||
$pt_puppetdb_conf_file = "${pt_puppetdir}/puppetdb.conf"
|
|
||||||
$pt_puppetdb_conf_erb = 'puppet_cd/puppetdb/puppetdb.conf.erb'
|
|
||||||
$pt_puppetdb_repl_ini = "${pt_puppetdb_conf_d}/repl.ini"
|
|
||||||
$pt_puppetdb_repl_erb = 'puppet_cd/puppetdb/repl.ini.erb'
|
|
||||||
$pt_puppetdb_service_file = '/usr/lib/systemd/system/puppetdb.service'
|
|
||||||
$pt_puppetdb_service_erb = 'puppet_cd/puppetdb/puppetdb_service.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'
|
||||||
@@ -1858,7 +1671,6 @@ class puppet_cd::params (
|
|||||||
# service
|
# service
|
||||||
$pt_server_service = 'puppetserver'
|
$pt_server_service = 'puppetserver'
|
||||||
$pt_agent_service = 'puppet'
|
$pt_agent_service = 'puppet'
|
||||||
$pt_db_service = 'puppetdb'
|
|
||||||
$pt_r10k_webhook_service = 'r10k_gitlab_webhook'
|
$pt_r10k_webhook_service = 'r10k_gitlab_webhook'
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user