summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-07-17 15:40:28 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2015-07-17 15:40:28 -0400
commit24770bd4e376eb5d95d38b00c5f8610382f471a1 (patch)
treeafe5f7eb4a83459d814a8159b51bf14326ad21dd
parentee34e3e9fd77032dfd06257979c534e896f4eeef (diff)
manage resolv.conf for DHCP hosts
this uses the resolvconf package from Debian, so may not be portable everywhere
-rw-r--r--manifests/dhcp.pp12
1 files changed, 12 insertions, 0 deletions
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'],
+ }
+ }
+}