Files
confdroid_postgresql/manifests/server/service.pp

21 lines
584 B
ObjectPascal
Raw Normal View History

2025-04-18 22:28:58 +02:00
## postgresql_cd::server::service.pp
# Module name: postgresql_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
2025-04-18 22:35:33 +02:00
# @summary Class manages the postgresql service
2025-04-18 22:28:58 +02:00
###############################################################################
class postgresql_cd::server::service (
) inherits postgresql_cd::params {
2025-04-18 22:35:33 +02:00
if $fqdn == $pl_server_fqdn {
2025-04-18 22:28:58 +02:00
require postgresql_cd::firewall::iptables
2025-09-28 14:28:49 +02:00
require postgresql_cd::server::initdb
2025-04-18 22:28:58 +02:00
service { $pl_service:
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
}
}
}