From 24770bd4e376eb5d95d38b00c5f8610382f471a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 17 Jul 2015 15:40:28 -0400 Subject: manage resolv.conf for DHCP hosts this uses the resolvconf package from Debian, so may not be portable everywhere --- manifests/dhcp.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 manifests/dhcp.pp diff --git a/manifests/dhcp.pp b/manifests/dhcp.pp new file mode 100644 index 0000000..b1de2c4 --- /dev/null +++ b/manifests/dhcp.pp @@ -0,0 +1,12 @@ +class resolvconf::dhcp( + $tail, +) +{ + package { 'resolvconf': ensure => installed, } + if $tail { + file { '/etc/resolvconf/resolv.conf.d/tail': + content => $tail, + require => Package['resolvconf'], + } + } +} -- cgit v1.2.3