22 lines
538 B
Puppet
22 lines
538 B
Puppet
## cd_haproxy::server::service.pp
|
|
# Module name: cd_haproxy
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
|
# @summary Class manages the service(s) for cd_haproxy.
|
|
#############################################################################
|
|
class cd_haproxy::server::service (
|
|
|
|
) inherits cd_haproxy::params {
|
|
|
|
if $fqdn == $hy_host_fqdn {
|
|
|
|
require cd_haproxy::firewall::iptables
|
|
|
|
service { $hy_service:
|
|
ensure => running,
|
|
hasstatus => true,
|
|
hasrestart => true,
|
|
enable => true,
|
|
}
|
|
}
|
|
}
|