3
0

OP#200 replace class names

This commit is contained in:
2025-12-04 19:49:59 +01:00
parent 363f546191
commit b97d83be3b
17 changed files with 101 additions and 101 deletions

View File

@@ -1,9 +1,9 @@
## postgresql_cd::server::pg_hba.pp
# Module name: postgresql_cd
## confdroid_postgresql::server::pg_hba.pp
# Module name: confdroid_postgresql
# Author: Arne Teuke (arne_teuke@puppetsoft.com)
# @summary Class manages pg_hba.conf file and line entries through define
# pg_hba_rule.pp
# @example postgresql_cd::server::pghba::pg_hba_rule { 'local access for role postgres':
# @example confdroid_postgresql::server::pghba::pg_hba_rule { 'local access for role postgres':
# pl_auth_type => 'local',
# pl_auth_database => 'all',
# pl_auth_user => 'postgres',
@@ -12,9 +12,9 @@
# pl_auth_option => '',
# }
##############################################################################
class postgresql_cd::server::pghba::pg_hba (
class confdroid_postgresql::server::pghba::pg_hba (
) inherits postgresql_cd::params {
) inherits confdroid_postgresql::params {
if $fqdn == $pl_server_fqdn {
# create the pg_hba.conf file
@@ -34,7 +34,7 @@ class postgresql_cd::server::pghba::pg_hba (
}
# manage default rules => should go into external config set
# postgresql_cd::server::pghba::pg_hba_rule { 'local access for role postgres':
# confdroid_postgresql::server::pghba::pg_hba_rule { 'local access for role postgres':
# pl_auth_type => 'local',
# pl_auth_database => 'all',
# pl_auth_user => $ql_user_name,
@@ -43,7 +43,7 @@ class postgresql_cd::server::pghba::pg_hba (
# pl_auth_option => $ql_auth_option,
# }
# postgresql_cd::server::pghba::pg_hba_rule { 'local access for all roles':
# confdroid_postgresql::server::pghba::pg_hba_rule { 'local access for all roles':
# pl_auth_type => 'local',
# pl_auth_database => 'all',
# pl_auth_user => 'all',

View File

@@ -1,5 +1,5 @@
## postgresql_cd::server::pghba::pg_hba_rule
# Module name: postgresql_cd
## confdroid_postgresql::server::pghba::pg_hba_rule
# Module name: confdroid_postgresql
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary define manages rule entries for pg_hba configuration file
# @see https://www.postgresql.org/docs/9.6/static/auth-pg-hba-conf.html
@@ -19,7 +19,7 @@
# appear on the list. Lower orders are higher on the list.
# @param [string] pl_auth_description Specify a description for the entry.
##############################################################################
define postgresql_cd::server::pghba::pg_hba_rule (
define confdroid_postgresql::server::pghba::pg_hba_rule (
Optional[String] $pl_auth_type = undef,
Optional[String] $pl_auth_database = undef,
@@ -31,9 +31,9 @@ define postgresql_cd::server::pghba::pg_hba_rule (
Optional[String] $pl_auth_description = undef,
) {
$pl_pg_hba_conf = $postgresql_cd::params::pl_pg_hba_conf
$pl_pg_hba_rule_conf = $postgresql_cd::params::pl_pg_hba_rule_conf
$pl_data_dir = $postgresql_cd::params::pl_data_dir
$pl_pg_hba_conf = $confdroid_postgresql::params::pl_pg_hba_conf
$pl_pg_hba_rule_conf = $confdroid_postgresql::params::pl_pg_hba_rule_conf
$pl_data_dir = $confdroid_postgresql::params::pl_data_dir
# create rule fragment