From c8e943dcde29b289922c4f3a7313147436e449e1 Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Sun, 9 Dec 2018 18:14:15 +0100 Subject: [PATCH] make main section nameservers optional --- README.md | 4 ++-- manifests/init.pp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9ad7d4bfb..f5fd4c224 100644 --- a/README.md +++ b/README.md @@ -134,10 +134,10 @@ The following is the list of all parameters available for this class. | `ldap_server` | String | `'localhost'` | | `ldap_username` | String | `'cn=root, dc=example, dc=com'` | | `logfacility` | String | `'daemon'` | -| `manage_service` | Boolean | `true` | +| `manage_service` | Boolean | `true` | | `max_lease_time` | Integer | `86400` | | `mtu` | Integer | `undef` | -| `nameservers` | Array | `[ '8.8.8.8', '8.8.4.4' ]` | +| `nameservers` | Array | `[]` | | `nameservers_ipv6` | Array | `[]` | | `ntpservers` | Array | `[]` | | `omapi_algorithm` | String | `HMAC-MD5` | diff --git a/manifests/init.pp b/manifests/init.pp index 812690d77..c9ee21181 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -2,7 +2,7 @@ # class dhcp ( Optional[Array[String]] $dnsdomain = undef, - Array[Stdlib::Compat::Ipv4] $nameservers = [ '8.8.8.8', '8.8.4.4' ], + Array[Stdlib::Compat::Ipv4] $nameservers = [], Array[Stdlib::Compat::Ipv6] $nameservers_ipv6 = [], Array[String] $ntpservers = [], Array[String] $dnssearchdomains = [],