aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/service.pp
diff options
context:
space:
mode:
authorMickaël Canévet <mickael.canevet@camptocamp.com>2015-11-04 11:24:25 +0100
committerMickaël Canévet <mickael.canevet@camptocamp.com>2015-11-04 11:24:25 +0100
commitb5ee63a48adbea3e50300e2c0c26c575ec1b5abb (patch)
treeb5d4822f3c9c048064ab2f20cd70899aba0c16d1 /manifests/server/service.pp
parent3a974fea4562a9f2afc446b20ddc3fd221e4f8ed (diff)
parent4dbb5a09e23e56fc8ed7ff04fc1cfcdc17932786 (diff)
downloadpuppet-dhcp-b5ee63a48adbea3e50300e2c0c26c575ec1b5abb.tar.gz
puppet-dhcp-b5ee63a48adbea3e50300e2c0c26c575ec1b5abb.tar.bz2
Merge pull request #16 from mcanevet/feature/acceptance
Add acceptance tests
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,
}
}