Files
confdroid_postgresql/manifests/main/files.pp

27 lines
884 B
ObjectPascal
Raw Normal View History

2025-12-04 19:49:59 +01:00
## confdroid_postgresql::main::files.pp
# Module name: confdroid_postgresql
2025-04-18 22:28:58 +02:00
# Author: Arne Teuke (arne_teuke@confdroid.com)
2025-12-04 19:49:59 +01:00
# @summary Class manages logic for the confdroid_postgresql module.
2025-04-18 22:28:58 +02:00
##############################################################################
2025-12-04 19:49:59 +01:00
class confdroid_postgresql::main::files (
2025-04-18 22:28:58 +02:00
2025-12-04 19:49:59 +01:00
) inherits confdroid_postgresql::params {
2025-04-18 23:49:20 +02:00
if $fqdn == $pl_server_fqdn {
2025-12-04 19:49:59 +01:00
require confdroid_postgresql::server::initdb
require confdroid_postgresql::main::dirs
2025-04-18 23:49:20 +02:00
2025-04-19 12:03:20 +02:00
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,
2025-12-04 19:49:59 +01:00
content => template('confdroid_postgresql/postgresql.conf.erb'),
2025-04-19 12:03:20 +02:00
notify => Service[$pl_service],
}
2025-04-18 23:49:20 +02:00
}
2025-04-18 22:28:58 +02:00
}