Files

22 lines
678 B
ObjectPascal
Raw Permalink Normal View History

2025-12-04 19:49:59 +01:00
## confdroid_postgresql::server::service.pp
# Module name: confdroid_postgresql
2025-12-05 14:22:43 +01:00
# Author: 12ww1160 (12ww1160@confdroid.com)
2025-04-18 22:35:33 +02:00
# @summary Class manages the postgresql service
2025-04-18 22:28:58 +02:00
###############################################################################
2025-12-04 19:49:59 +01:00
class confdroid_postgresql::server::service (
2025-04-18 22:28:58 +02:00
2025-12-04 19:49:59 +01:00
) inherits confdroid_postgresql::params {
2025-04-18 22:35:33 +02:00
if $fqdn == $pl_server_fqdn {
2025-12-04 19:49:59 +01:00
require confdroid_postgresql::firewall::iptables
require confdroid_postgresql::server::initdb
require confdroid_postgresql::server::pghba::pg_hba
2025-04-18 22:28:58 +02:00
service { $pl_service:
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
}
}
}