diff --git a/doc/_index.html b/doc/_index.html index 29a3698..b5002f7 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -144,6 +144,11 @@ +
  • + postgresql_cd::server::roles::role_df + +
  • + diff --git a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html index 2479581..6913895 100644 --- a/doc/puppet_classes/postgresql_cd_3A_3Aparams.html +++ b/doc/puppet_classes/postgresql_cd_3A_3Aparams.html @@ -378,6 +378,24 @@ —

    the name of the CA crt

    +
    + + + +
  • + + pl_manage_roles + + + (Boolean) + + + (defaults to: true) + + + — +
    +

    Whether to manage roles

  • @@ -393,7 +411,6 @@
     
     
    -23
     24
     25
     26
    @@ -436,10 +453,12 @@
     63
     64
     65
    -66
    +66 +67 +68 -
    # File 'manifests/params.pp', line 23
    +        
    # File 'manifests/params.pp', line 24
     
     class postgresql_cd::params (
     
    @@ -464,6 +483,7 @@ class postgresql_cd::params (
       String $pl_server_crt           = 'server.crt',
       String $pl_server_key           = 'server.key',
       String $pl_ca_crt               = 'root.crt',
    +  Boolean $pl_manage_roles        = true,
     
     ) {
       $fqdn                     = $facts['networking']['fqdn']
    diff --git a/doc/puppet_defined_type_list.html b/doc/puppet_defined_type_list.html
    index 027e4eb..b8f2071 100644
    --- a/doc/puppet_defined_type_list.html
    +++ b/doc/puppet_defined_type_list.html
    @@ -47,6 +47,13 @@
         
         
     
    +    
  • + +
  • + + diff --git a/doc/puppet_defined_types/postgresql_cd_3A_3Aserver_3A_3Aroles_3A_3Arole_df.html b/doc/puppet_defined_types/postgresql_cd_3A_3Aserver_3A_3Aroles_3A_3Arole_df.html new file mode 100644 index 0000000..72cf6be --- /dev/null +++ b/doc/puppet_defined_types/postgresql_cd_3A_3Aserver_3A_3Aroles_3A_3Arole_df.html @@ -0,0 +1,238 @@ + + + + + + + Defined Type: postgresql_cd::server::roles::role_df + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Defined Type: postgresql_cd::server::roles::role_df

    +
    +
    +
    Defined in:
    +
    + manifests/server/roles/role_df.pp +
    +
    +
    + +

    Summary

    + define manages databases + +

    Overview

    +
    +
    + +
    +
    + + + +
    +

    Parameters:

    +
      + +
    • + + pl_role_name + + + (Optional[String]) + + + (defaults to: undef) + + + — +
      +

      the name of the role to be created.

      +
      + +
    • + +
    • + + pl_role_pw + + + (Optional[String]) + + + (defaults to: undef) + + + — +
      +

      the password to be created

      +
      + +
    • + +
    • + + pl_role_attributes + + + (String) + + + (defaults to: 'LOGIN') + + + — +
      +

      attributes for the role to be created

      +
      + +
    • + +
    • + + pl_role_status + + + (String) + + + (defaults to: 'CREATE ROLE') + + + — +
      +

      what to do with the role

      +
      + +
    • + +
    + + + +

    See Also:

    + + +
    + + + + + +
    +
    +
    +
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +
    +
    # File 'manifests/server/roles/role_df.pp', line 12
    +
    +define postgresql_cd::server::roles::role_df (
    +
    +  Optional[String] $pl_role_name      = undef,
    +  Optional[String] $pl_role_pw        = undef,
    +  String $pl_role_attributes          = 'LOGIN',
    +  String $pl_role_status              = 'CREATE ROLE',
    +
    +) {
    +  $pl_manage_roles  = $postgresql_cd::params::pl_manage_roles
    +
    +  if $pl_manage_roles == true {
    +    # create the role
    +
    +    exec { "role_${name}":
    +      command => template('postgresql_cd/server/roles/role.sql.erb'),
    +      user    => 'postgres',
    +      path    => ['/usr/bin','/bin'],
    +      cwd     => '/tmp',
    +      unless  => template('postgresql_cd/server/roles/unless_sql.erb'),
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file