diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-11-28 00:22:28 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-11-28 00:22:28 -0200 |
commit | 36b821022fde2d3efafac99264b47745463086ed (patch) | |
tree | 8a8b7360442e73e2afc35280bcae83630301dabd /manifests | |
parent | ef621e978bbd54e35e72ca3f0cbbe624e02323ca (diff) | |
download | puppet-nodo-36b821022fde2d3efafac99264b47745463086ed.tar.gz puppet-nodo-36b821022fde2d3efafac99264b47745463086ed.tar.bz2 |
Adding dhclient class
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 1 | ||||
-rw-r--r-- | manifests/subsystems/dhclient.pp | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 1d4006b..a4a94fa 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -79,6 +79,7 @@ import "subsystems/profile.pp" import "subsystems/schroot.pp" import "subsystems/resolver.pp" import "subsystems/domain.pp" +import "subsystems/dhclient.pp" import "subsystems/utils.pp" import "subsystems/utils/debian.pp" import "subsystems/utils/desktop.pp" diff --git a/manifests/subsystems/dhclient.pp b/manifests/subsystems/dhclient.pp new file mode 100644 index 0000000..7c4ebf4 --- /dev/null +++ b/manifests/subsystems/dhclient.pp @@ -0,0 +1,14 @@ +class dhclient { + package { 'isc-dhcp-client': + ensure => present, + } + + file { '/etc/dhcp/dhclient.conf': + ensure => present, + owner => root, + group => root, + mode => 0644, + require => Package['isc-dhcp-client'], + content => template('nodo/dhcp/dhclient.conf.erb'), + } +} |