changeset 286:e765073832d9

Fix Augeas setting extra IPv6 lines Apparently you need to nest the quotes, because Augeas 🙄 https://puppet.com/docs/puppet/5.5/resources_augeas.html#ifcfg-bondingopts
author IBBoard <dev@ibboard.co.uk>
date Sun, 16 Feb 2020 14:12:56 +0000
parents c0e989d32b5c
children 97e732f67770
files modules/website/manifests/init.pp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/website/manifests/init.pp	Sun Feb 16 12:15:17 2020 +0000
+++ b/modules/website/manifests/init.pp	Sun Feb 16 14:12:56 2020 +0000
@@ -129,9 +129,10 @@
   }
   if ($proxy_4to6_ip_prefix != undef) and ($proxy_upstream != undef) {
     $ipv6_secondaries = join($proxy_4to6_addresses, " ")
-    augeas {'/etc/sysconfig/network-scripts/ifcfg-eth0':
+
+    augeas {'IPv6 secondary addresses':
       context => "/files/etc/sysconfig/network-scripts/ifcfg-eth0",
-      changes => "set IPV6ADDR_SECONDARIES '$ipv6_secondaries'",
+      changes => "set IPV6ADDR_SECONDARIES '\"$ipv6_secondaries\"'",
     }
 
     apache::mod { "remoteip": }