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
|
2018-04-24 15:32:11 +02:00
|
|
|
|
|
|
|
|
service { $hy_service:
|
|
|
|
|
ensure => running,
|
|
|
|
|
hasstatus => true,
|
|
|
|
|
hasrestart => true,
|
|
|
|
|
enable => true,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|