diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-03-31 20:25:34 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-03-31 20:25:34 -0300 |
commit | f0e9bb998b56fe42a7d25eacf43591d4b922cb89 (patch) | |
tree | e081f6af0f2c307f80f3ad4badfa40f812e373e3 /manifests/subsystems | |
parent | f5e4f0d0e4465f739a854393e89298e1b9bbc262 (diff) | |
download | puppet-nodo-f0e9bb998b56fe42a7d25eacf43591d4b922cb89.tar.gz puppet-nodo-f0e9bb998b56fe42a7d25eacf43591d4b922cb89.tar.bz2 |
Parametrize dhclient class
Diffstat (limited to 'manifests/subsystems')
-rw-r--r-- | manifests/subsystems/dhclient.pp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/manifests/subsystems/dhclient.pp b/manifests/subsystems/dhclient.pp index 7c4ebf4..b901d2b 100644 --- a/manifests/subsystems/dhclient.pp +++ b/manifests/subsystems/dhclient.pp @@ -1,10 +1,13 @@ -class dhclient { +class dhclient( + $ensure = hiera('nodo::dhclient::manage', 'present'), + $supersede_domain = hiera('nodo::dhclient::supersede_domain', '') +) { package { 'isc-dhcp-client': - ensure => present, + ensure => $ensure, } file { '/etc/dhcp/dhclient.conf': - ensure => present, + ensure => $ensure, owner => root, group => root, mode => 0644, |