Files
confdroid_haproxy/manifests/server/service.pp

21 lines
617 B
ObjectPascal
Raw Normal View History

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