3
0

Recommit for updates in build 7

This commit is contained in:
2025-12-04 20:59:42 +01:00
parent b1376738c6
commit 6cf1de9262
4 changed files with 56 additions and 7 deletions

View File

@@ -94,7 +94,9 @@
</li><li>
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
</li><li>
<p>manage extensions (set <code>pl_manage_extenuios</code>to <code>true</code>)</p>
<p>manage extensions (set <code>pl_manage_extensions</code>to <code>true</code>)</p>
</li><li>
<p>install and manage pg_bouncer (set <code>pl_use_pg_bouncer</code>to <code>true</code>)</p>
</li></ul>
<h2 id="label-Repo+Documentation">Repo Documentation</h2>

View File

@@ -94,7 +94,9 @@
</li><li>
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
</li><li>
<p>manage extensions (set <code>pl_manage_extenuios</code>to <code>true</code>)</p>
<p>manage extensions (set <code>pl_manage_extensions</code>to <code>true</code>)</p>
</li><li>
<p>install and manage pg_bouncer (set <code>pl_use_pg_bouncer</code>to <code>true</code>)</p>
</li></ul>
<h2 id="label-Repo+Documentation">Repo Documentation</h2>

View File

@@ -123,7 +123,12 @@
25
26
27
28</pre>
28
29
30
31
32
33</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
@@ -143,6 +148,11 @@ class confdroid_postgresql::main::install (
ensure =&gt; $pkg_ensure,
}
}
if $pl_use_pg_bouncer == true {
package { $reqpackages_bouncer:
ensure =&gt; $pkg_ensure,
}
}
}
if $fqdn != $pl_server_fqdn {

View File

@@ -496,6 +496,37 @@
</li>
<li>
<span class='name'>pl_use_pg_bouncer</span>
<span class='type'>(<tt>Boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to use the pc_bouncer</p>
</div>
</li>
<li>
<span class='name'>reqpackages_bouncer</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;pgbouncer&#39;</tt>)</em>
</li>
</ul>
@@ -507,7 +538,6 @@
<pre class="lines">
29
30
31
32
@@ -561,10 +591,13 @@
80
81
82
83</pre>
83
84
85
86</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 29</span>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 30</span>
class confdroid_postgresql::params (
@@ -574,6 +607,7 @@ class confdroid_postgresql::params (
Array $reqpackages_server = [&#39;postgresql-server&#39;,&#39;postgresql-contrib&#39;],
String $reqpackages_extensions = &#39;timescaledb&#39;,
String $reqpackages_client = &#39;postgresql&#39;,
String $reqpackages_bouncer = &#39;pgbouncer&#39;,
String $pkg_ensure = &#39;latest&#39;,
# firewall
@@ -598,7 +632,8 @@ class confdroid_postgresql::params (
Boolean $pl_use_exporter = false,
String $pl_install_dir = &#39;/opt/postgres-exporter&#39;,
#
# pg bouncer
Boolean $pl_use_pg_bouncer = false,
) {
$fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;]