Puppet Class: geoip::service
- Defined in:
- manifests/service.pp
Overview
This class implements the service control stage of the module. It should not be called directly.
If geoip::manage_service
enabled, an update service will be created fitting to the service provider available on the node. Service name is configured with geoip::service_name
.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'manifests/service.pp', line 5
class geoip::service {
if $geoip::manage_service {
$srv = $facts['service_provider']
case $srv {
/systemd/: {
contain geoip::systemd::timer
} # systemd
default: {
fail("unknown service provider (${srv}).")
} # default
} # case
} # if
}
|