3
0

OP#200 replace class names

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

View File

@@ -1,5 +1,5 @@
## postgresql_cd::server::databases::db_df
# Module name: postgresql_cd
## confdroid_postgresql::server::databases::db_df
# Module name: confdroid_postgresql
# Author: Arne Teuke (arne_teuke@confdroid.com.com)
# @summary define manages databases
# @see https://www.postgresql.org/docs/9.6/static/managing-databases.html
@@ -10,25 +10,25 @@
# 'CREATE DATABASE' creates it, 'DROP DATABASE' drops it.
# @param [String] pl_db_extension
##############################################################################
define postgresql_cd::server::databases::db_df (
define confdroid_postgresql::server::databases::db_df (
Optional[String] $pl_db_name = undef,
Optional[String] $pl_owner_name = undef,
Optional[String] $pl_db_action = undef,
String $pl_db_extension = 'pg_trgm',
) {
$pl_manage_content = $postgresql_cd::params::pl_manage_content
$pl_manage_content = $confdroid_postgresql::params::pl_manage_content
if $pl_manage_content == true {
# create databases
if $pl_db_action == 'CREATE DATABASE' {
exec { "create_database_${name}":
command => template('postgresql_cd/server/databases/db_create_sql.erb'),
command => template('confdroid_postgresql/server/databases/db_create_sql.erb'),
user => 'postgres',
path => ['/usr/bin','/bin'],
cwd => '/tmp',
unless => template('postgresql_cd/server/databases/unless_db_sql.erb'),
unless => template('confdroid_postgresql/server/databases/unless_db_sql.erb'),
}
}
@@ -36,11 +36,11 @@ define postgresql_cd::server::databases::db_df (
if $pl_db_action == 'DROP DATABASE' {
exec { "drop_database_${name}":
command => template('postgresql_cd/server/databases/db_drop_sql.erb'),
command => template('confdroid_postgresql/server/databases/db_drop_sql.erb'),
user => 'postgres',
path => ['/usr/bin','/bin'],
cwd => '/tmp',
onlyif => template('postgresql_cd/server/databases/unless_drop_sql.erb'),
onlyif => template('confdroid_postgresql/server/databases/unless_drop_sql.erb'),
}
}
}