Recommit for updates in build 7
This commit is contained in:
@@ -94,7 +94,9 @@
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
|
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
|
||||||
</li><li>
|
</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>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|||||||
@@ -94,7 +94,9 @@
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
|
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
|
||||||
</li><li>
|
</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>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|||||||
@@ -123,7 +123,12 @@
|
|||||||
25
|
25
|
||||||
26
|
26
|
||||||
27
|
27
|
||||||
28</pre>
|
28
|
||||||
|
29
|
||||||
|
30
|
||||||
|
31
|
||||||
|
32
|
||||||
|
33</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
<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 => $pkg_ensure,
|
ensure => $pkg_ensure,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if $pl_use_pg_bouncer == true {
|
||||||
|
package { $reqpackages_bouncer:
|
||||||
|
ensure => $pkg_ensure,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if $fqdn != $pl_server_fqdn {
|
if $fqdn != $pl_server_fqdn {
|
||||||
|
|||||||
@@ -496,6 +496,37 @@
|
|||||||
|
|
||||||
</li>
|
</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>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<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>'pgbouncer'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@@ -507,7 +538,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
29
|
|
||||||
30
|
30
|
||||||
31
|
31
|
||||||
32
|
32
|
||||||
@@ -561,10 +591,13 @@
|
|||||||
80
|
80
|
||||||
81
|
81
|
||||||
82
|
82
|
||||||
83</pre>
|
83
|
||||||
|
84
|
||||||
|
85
|
||||||
|
86</pre>
|
||||||
</td>
|
</td>
|
||||||
<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 (
|
class confdroid_postgresql::params (
|
||||||
|
|
||||||
@@ -574,6 +607,7 @@ class confdroid_postgresql::params (
|
|||||||
Array $reqpackages_server = ['postgresql-server','postgresql-contrib'],
|
Array $reqpackages_server = ['postgresql-server','postgresql-contrib'],
|
||||||
String $reqpackages_extensions = 'timescaledb',
|
String $reqpackages_extensions = 'timescaledb',
|
||||||
String $reqpackages_client = 'postgresql',
|
String $reqpackages_client = 'postgresql',
|
||||||
|
String $reqpackages_bouncer = 'pgbouncer',
|
||||||
String $pkg_ensure = 'latest',
|
String $pkg_ensure = 'latest',
|
||||||
|
|
||||||
# firewall
|
# firewall
|
||||||
@@ -598,7 +632,8 @@ class confdroid_postgresql::params (
|
|||||||
Boolean $pl_use_exporter = false,
|
Boolean $pl_use_exporter = false,
|
||||||
String $pl_install_dir = '/opt/postgres-exporter',
|
String $pl_install_dir = '/opt/postgres-exporter',
|
||||||
|
|
||||||
#
|
# pg bouncer
|
||||||
|
Boolean $pl_use_pg_bouncer = false,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
Reference in New Issue
Block a user