aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/dhclient.pp
blob: 1e714abf5607bdcc82e56264ad1e2022f538774e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class nodo::subsystem::dhclient(
  $ensure                  = hiera('nodo::subsystem::dhclient::ensure',                  'present'),
  $supersede_domain_name   = hiera('nodo::subsystem::dhclient::supersede_domain_name',   $::domain)
  $supersede_domain_search = hiera('nodo::subsystem::dhclient::supersede_domain_search', $::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'),
  }
}