aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/service.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server/service.pp')
-rw-r--r--manifests/server/service.pp15
1 files changed, 11 insertions, 4 deletions
diff --git a/manifests/server/service.pp b/manifests/server/service.pp
index ef016c5..031a603 100644
--- a/manifests/server/service.pp
+++ b/manifests/server/service.pp
@@ -10,10 +10,17 @@ class dhcp::server::service {
validate_string($dhcp::params::service_pattern)
validate_re($dhcp::params::service_pattern, '^\S+$')
+ if $::operatingsystem == 'Debian' and $::operatingsystemmajrelease == '8' {
+ $provider = 'debian'
+ } else {
+ $provider = undef
+ }
+
service {'dhcpd':
- ensure => running,
- name => $dhcp::params::srv_dhcpd,
- enable => true,
- pattern => $dhcp::params::service_pattern,
+ ensure => running,
+ provider => $provider,
+ name => $dhcp::params::srv_dhcpd,
+ enable => true,
+ pattern => $dhcp::params::service_pattern,
}
}