aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/dhclient.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/dhclient.pp')
-rw-r--r--manifests/subsystem/dhclient.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/subsystem/dhclient.pp b/manifests/subsystem/dhclient.pp
new file mode 100644
index 0000000..332dc34
--- /dev/null
+++ b/manifests/subsystem/dhclient.pp
@@ -0,0 +1,17 @@
+class nodo::subsystem::dhclient(
+ $ensure = hiera('nodo::subsystem::dhclient::ensure', 'present'),
+ $supersede_domain = hiera('nodo::subsystem::dhclient::supersede_domain', $::domain)
+) {
+ package { 'isc-dhcp-client':
+ ensure => $ensure,
+ }
+
+ file { '/etc/dhcp/dhclient.conf':
+ ensure => $ensure,
+ owner => root,
+ group => root,
+ mode => 0644,
+ require => Package['isc-dhcp-client'],
+ content => template('nodo/dhcp/dhclient.conf.erb'),
+ }
+}