From 3b0987256c1f81ef4a5be7d83de564363ca57b28 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Sat, 9 May 2015 11:29:52 +0200 Subject: resolver may be missing --- .../modules/sunet/templates/cloudimage/mk_cloud_image.erb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'global/overlay/etc/puppet/modules') diff --git a/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb b/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb index 9d52a07..7b5b052 100644 --- a/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb +++ b/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb @@ -53,11 +53,17 @@ instance-id: iid-${id} local-hostname: ${hostname} EOF +dns="" +if [ "x${resolver}" != "x" ]; then + dns="dns-nameservers ${resolver}" +fi + if [ "x${dhcp}" = "xyes" ]; then cat >> ${meta_data} <