Recommit for updates in build 35
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
|
|
||||||
<p>Installation</p>
|
<p>Installation</p>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
<p>install binaries as per given parameters for major and minor version</p>
|
<p>install binaries</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>initialize the database cluster</p>
|
<p>initialize the database cluster</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
@@ -88,12 +88,13 @@
|
|||||||
<p>manage directory structure including file system permissions and selinux context</p>
|
<p>manage directory structure including file system permissions and selinux context</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage service status</p>
|
<p>manage service status</p>
|
||||||
|
</li></ul>
|
||||||
|
|
||||||
|
<p>Optional:</p>
|
||||||
|
<ul><li>
|
||||||
|
<p>manage single line entries in pg_hba via define</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage single line entries in pg_hba via define (optional)</p>
|
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
|
||||||
</li><li>
|
|
||||||
<p>manage roles via define (optional)</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage databases via define (optional)</p>
|
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
|
|
||||||
<p>Installation</p>
|
<p>Installation</p>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
<p>install binaries as per given parameters for major and minor version</p>
|
<p>install binaries</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>initialize the database cluster</p>
|
<p>initialize the database cluster</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
@@ -88,12 +88,13 @@
|
|||||||
<p>manage directory structure including file system permissions and selinux context</p>
|
<p>manage directory structure including file system permissions and selinux context</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage service status</p>
|
<p>manage service status</p>
|
||||||
|
</li></ul>
|
||||||
|
|
||||||
|
<p>Optional:</p>
|
||||||
|
<ul><li>
|
||||||
|
<p>manage single line entries in pg_hba via define</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage single line entries in pg_hba via define (optional)</p>
|
<p>manage roles and databases via define (set <code>$pl_manage_content</code> to true)</p>
|
||||||
</li><li>
|
|
||||||
<p>manage roles via define (optional)</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage databases via define (optional)</p>
|
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|||||||
@@ -384,7 +384,7 @@
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
<span class='name'>pl_manage_roles</span>
|
<span class='name'>pl_manage_content</span>
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
@@ -395,25 +395,7 @@
|
|||||||
|
|
||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>Whether to manage roles</p>
|
<p>whether to manage roles and databases</p>
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>pl_manage_databases</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>Whether to manage databases</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -429,6 +411,7 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
|
24
|
||||||
25
|
25
|
||||||
26
|
26
|
||||||
27
|
27
|
||||||
@@ -472,12 +455,10 @@
|
|||||||
65
|
65
|
||||||
66
|
66
|
||||||
67
|
67
|
||||||
68
|
68</pre>
|
||||||
69
|
|
||||||
70</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 25</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 24</span>
|
||||||
|
|
||||||
class postgresql_cd::params (
|
class postgresql_cd::params (
|
||||||
|
|
||||||
@@ -502,8 +483,7 @@ class postgresql_cd::params (
|
|||||||
String $pl_server_crt = 'server.crt',
|
String $pl_server_crt = 'server.crt',
|
||||||
String $pl_server_key = 'server.key',
|
String $pl_server_key = 'server.key',
|
||||||
String $pl_ca_crt = 'root.crt',
|
String $pl_ca_crt = 'root.crt',
|
||||||
Boolean $pl_manage_roles = true,
|
Boolean $pl_manage_content = true,
|
||||||
Boolean $pl_manage_databases = true,
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
$fqdn = $facts['networking']['fqdn']
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|||||||
@@ -218,9 +218,9 @@ define postgresql_cd::server::databases::db_df (
|
|||||||
Optional[String] $pl_db_action = undef,
|
Optional[String] $pl_db_action = undef,
|
||||||
String $pl_db_extension = 'pg_trgm',
|
String $pl_db_extension = 'pg_trgm',
|
||||||
) {
|
) {
|
||||||
$pl_manage_databases = $postgresql_cd::params::pl_manage_databases
|
$pl_manage_content = $postgresql_cd::params::pl_manage_content
|
||||||
|
|
||||||
if $pl_manage_databases == true {
|
if $pl_manage_content == true {
|
||||||
# create databases
|
# create databases
|
||||||
|
|
||||||
if $pl_db_action == 'CREATE DATABASE' {
|
if $pl_db_action == 'CREATE DATABASE' {
|
||||||
|
|||||||
@@ -209,9 +209,9 @@ define postgresql_cd::server::roles::role_df (
|
|||||||
String $pl_role_status = 'CREATE ROLE',
|
String $pl_role_status = 'CREATE ROLE',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
$pl_manage_roles = $postgresql_cd::params::pl_manage_roles
|
$pl_manage_content = $postgresql_cd::params::pl_manage_content
|
||||||
|
|
||||||
if $pl_manage_roles == true {
|
if $pl_manage_content == true {
|
||||||
# create the role
|
# create the role
|
||||||
|
|
||||||
exec { "role_${name}":
|
exec { "role_${name}":
|
||||||
|
|||||||
Reference in New Issue
Block a user