3
0

recommit for updates in build 50

This commit is contained in:
2025-02-26 17:33:53 +01:00
parent e7f0e56dd1
commit 38d58b3161
4 changed files with 56 additions and 4 deletions

View File

@@ -89,6 +89,10 @@ production</em></strong></p>
</li><li> </li><li>
<p>install packages depending on whether the host fqdn equals either master <p>install packages depending on whether the host fqdn equals either master
fqdn, db fqdn or none (agent).</p> fqdn, db fqdn or none (agent).</p>
</li><li>
<p>open firewall ports depending on fqdn choices</p>
</li><li>
<p>start services as required</p>
</li></ul> </li></ul>
<h2 id="label-Support">Support</h2> <h2 id="label-Support">Support</h2>

View File

@@ -89,6 +89,10 @@ production</em></strong></p>
</li><li> </li><li>
<p>install packages depending on whether the host fqdn equals either master <p>install packages depending on whether the host fqdn equals either master
fqdn, db fqdn or none (agent).</p> fqdn, db fqdn or none (agent).</p>
</li><li>
<p>open firewall ports depending on fqdn choices</p>
</li><li>
<p>start services as required</p>
</li></ul> </li></ul>
<h2 id="label-Support">Support</h2> <h2 id="label-Support">Support</h2>

View File

@@ -107,17 +107,37 @@
9 9
10 10
11 11
12</pre> 12
13
14
15
16
17
18
19
20
21
22</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span> <pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
class puppet_cd::main::dirs ( class puppet_cd::main::dirs (
) inherits puppet_cd::params { ) inherits puppet_cd::params {
require puppet_cd::main::install require puppet_cd::main::install
file { $pt_main_dir:
ensure =&gt; directory,
path =&gt; $pt_main_dir,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0750&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; puppet_etc_t,
seluser =&gt; system_u,
}
}</pre> }</pre>
</td> </td>
</tr> </tr>

View File

@@ -348,7 +348,19 @@ considered a puppet agent.</p>
43 43
44 44
45 45
46</pre> 46
47
48
49
50
51
52
53
54
55
56
57
58</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 18</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 18</span>
@@ -373,6 +385,18 @@ class puppet_cd::params (
) { ) {
$fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;] $fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;]
# directories
$pt_main_dir = &#39;/etc/puppetlabs&#39;
$pt_puppetdir = &quot;${pt_main_dir}/puppet&quot;
$pt_code_dir = &quot;${pt_main_dir}/code&quot;
$pt_environmentspath = &quot;${pt_code_dir}/environments&quot;
$pt_ssldir = &quot;${pt_puppetdir}/ssl&quot;
$pt_privatekeydir = &quot;${pt_ssldir}/private_keys&quot;
$pt_rundir = &#39;/var/run/puppetlabs&#39;
$pt_rundir_master = &#39;/var/run/puppetlabs/puppetserver&#39;
$pt_vardir = &#39;/opt/puppetlabs/puppet/cache&#39;
$pt_vardir_master = &#39;/opt/puppetlabs/server/data/puppetserver&#39;
# service # service
$pt_server_service = &#39;puppetserver&#39; $pt_server_service = &#39;puppetserver&#39;
$pt_agent_service = &#39;puppet&#39; $pt_agent_service = &#39;puppet&#39;