2026-09-05 11:38:16 +02:00
|
|
|
## confdroid_haproxy::server::service.pp
|
|
|
|
|
# Module name: confdroid_haproxy
|
2018-04-24 15:32:11 +02:00
|
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
2026-09-05 11:38:16 +02:00
|
|
|
# @summary Class manages the service(s) for confdroid_haproxy.
|
2018-04-24 15:32:11 +02:00
|
|
|
#############################################################################
|
2026-09-05 11:38:16 +02:00
|
|
|
class confdroid_haproxy::server::service (
|
2018-04-24 15:32:11 +02:00
|
|
|
|
2026-09-05 11:38:16 +02:00
|
|
|
) inherits confdroid_haproxy::params {
|
2018-04-24 15:32:11 +02:00
|
|
|
if $fqdn == $hy_host_fqdn {
|
2026-09-05 11:38:16 +02:00
|
|
|
require confdroid_haproxy::firewall::iptables
|
|
|
|
|
require confdroid_haproxy::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
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|