diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-09-27 06:37:28 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-09-27 06:37:28 +0200 |
commit | 20d5b59271df601a41778841b3438dfdb981c4d1 (patch) | |
tree | 957837e1511d281653b7676fa5990f44aec3223c | |
parent | Some extra packages for workstations. (diff) | |
download | profiles-20d5b59271df601a41778841b3438dfdb981c4d1.tar.gz profiles-20d5b59271df601a41778841b3438dfdb981c4d1.tar.xz |
Minor cleanup.
-rw-r--r-- | manifests/resolv.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/resolv.pp b/manifests/resolv.pp index 8b12ab9..6c37abf 100644 --- a/manifests/resolv.pp +++ b/manifests/resolv.pp @@ -4,9 +4,9 @@ class profiles::resolv ( ) { $lines = ['# File managed by Puppet'] - + $nameservers.map |$n| { "nameserver ${n}" } + + $nameservers.map |$n| { "nameserver ${n}" } + if $search != [] { [ "search ${search.join(' ')}" ] } else { [] } - + [""] # for trailing newline + + [''] # for trailing newline file { '/etc/resolv.conf': ensure => file, |