3
0

add file control for postgresql.conf

This commit is contained in:
Arne Teuke
2025-04-19 12:03:20 +02:00
parent 5249250a01
commit 48e8a98860
3 changed files with 841 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ class postgresql_cd::main::files (
require postgresql_cd::main::dirs
file { '/var/lib/pgsql/data/pg_hba.conf':
ensure => file,
ensure => file,
owner => 'postgres',
group => 'postgres',
mode => '0600',
@@ -22,5 +22,18 @@ class postgresql_cd::main::files (
content => template('postgresql_cd/pg_hba.conf.erb'),
notify => Service[$pl_service],
}
file { '/var/lib/pgsql/data/postgresql.conf':
ensure => file,
owner => 'postgres',
group => 'postgres',
mode => '0600',
selrange => s0,
selrole => object_r,
seltype => postgresql_db_t,
seluser => unconfined_u,
content => template('postgresql_cd/postgresql.conf.erb'),
notify => Service[$pl_service],
}
}
}