3
0

recommit for updates in build 4

This commit is contained in:
2025-04-18 22:07:06 +02:00
parent bdfe2787b7
commit a7fd046f45
5 changed files with 281 additions and 11 deletions

View File

@@ -78,6 +78,11 @@
</li>
<li>
<span class='object_link'><a href="puppet_classes/postgresql_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::postgresql_cd::main::install (puppet_class)">postgresql_cd::main::install</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/postgresql_cd_3A_3Aparams.html" title="puppet_classes::postgresql_cd::params (puppet_class)">postgresql_cd::params</a></span>

View File

@@ -50,7 +50,14 @@
</li>
<li id="object_puppet_classes::postgresql_cd::params" class="odd">
<li id="object_puppet_classes::postgresql_cd::main::install" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/postgresql_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::postgresql_cd::main::install (puppet_class)">postgresql_cd::main::install</a></span>
</div>
</li>
<li id="object_puppet_classes::postgresql_cd::params" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/postgresql_cd_3A_3Aparams.html" title="puppet_classes::postgresql_cd::params (puppet_class)">postgresql_cd::params</a></span>
</div>

View File

@@ -113,7 +113,7 @@ Teuke (arne_teuke@confdroid.com)</p>
class postgresql_cd::main::config (
) inherits postgresql_cd::params {
include postgresql_cd::main::install
}</pre>
</td>
</tr>

View File

@@ -0,0 +1,156 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: postgresql_cd::main::install
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::postgresql_cd::main::install";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (p)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">postgresql_cd::main::install</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: postgresql_cd::main::install</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="postgresql_cd_3A_3Aparams.html" title="puppet_classes::postgresql_cd::params (puppet_class)">postgresql_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/install.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages logic for the postgresql_cd module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>postgresql_cd::main::install.pp Module name: postgresql_cd Author: Arne
Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
class postgresql_cd::main::install (
) inherits postgresql_cd::params {
if $fqdn == $pl_server_fqdn {
package { $reqpackages_server:
ensure =&gt; $pkg_ensure,
}
package { $reqpackages_client:
ensure =&gt; $pkg_ensure,
}
}
if $fqdn != $pl_server_fqdn {
package { $reqpackages_client:
ensure =&gt; $pkg_ensure,
}
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -69,6 +69,8 @@
<span class='object_link'><a href="postgresql_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::postgresql_cd::main::config (puppet_class)">postgresql_cd::main::config</a></span><br/>
<span class='object_link'><a href="postgresql_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::postgresql_cd::main::install (puppet_class)">postgresql_cd::main::install</a></span><br/>
</dd>
</dl>
@@ -95,7 +97,85 @@
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>pl_server_fqdn</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>the fqdn of the postgresql server. Any other system will be configured as
client</p>
</div>
</li>
<li>
<span class='name'>reqpackages_server</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;postgresql-server&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the packages for the server</p>
</div>
</li>
<li>
<span class='name'>reqpackages_client</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;postgresql&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the packages for the client</p>
</div>
</li>
<li>
<span class='name'>pkg_ensure</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;latest&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>which version of the packages to install, i.e. &#39;latest&#39;,
&#39;present&#39; &#39;13.20&#39;,</p>
</div>
</li>
</ul>
</div><div class="method_details_list">
@@ -105,25 +185,47 @@
<pre class="lines">
6
7
8
9
10
11
12
13</pre>
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 6</span>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 12</span>
class postgresql_cd::params (
String $pl_server_fqdn = undef,
# installation
String $reqpackages_server = &#39;postgresql-server&#39;,
String $reqpackages_client = &#39;postgresql&#39;,
String $pkg_ensure = &#39;latest&#39;,
) {
$fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;]
$domain = $facts[&#39;networking&#39;][&#39;domain&#39;]
$os_name = $facts[&#39;os&#39;][&#39;name&#39;]
$os_release = $facts[&#39;os&#39;][&#39;release&#39;][&#39;major&#39;]
# includes must be last
include postgresql_cd::main::config
}</pre>
</td>
</tr>