Files
confdroid_haproxy/manifests/server/service.pp

21 lines
568 B
ObjectPascal
Raw Normal View History

2025-03-02 16:28:57 +01:00
## haproxy_cd::server::service.pp
# Module name: haproxy_cd
2018-04-24 15:32:11 +02:00
# Author: Arne Teuke (arne_teuke@confdroid.com)
2025-03-02 16:28:57 +01:00
# @summary Class manages the service(s) for haproxy_cd.
2018-04-24 15:32:11 +02:00
#############################################################################
2025-03-02 16:28:57 +01:00
class haproxy_cd::server::service (
2018-04-24 15:32:11 +02:00
2025-03-02 16:28:57 +01:00
) inherits haproxy_cd::params {
2018-04-24 15:32:11 +02:00
if $fqdn == $hy_host_fqdn {
2025-03-02 16:28:57 +01:00
require haproxy_cd::firewall::iptables
2025-03-02 17:26:09 +01:00
require haproxy_cd::main::files
2018-04-24 15:32:11 +02:00
service { $hy_service:
2025-03-02 17:26:09 +01:00
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
2018-04-24 15:32:11 +02:00
}
}
}