Puppet hieradata does not properly interpret an IPv4-mapped IPv6
IPv6 IPv4-mapped prefix ::ffff is being interpreted by puppet as
a Hiera parameter reference, causing a Hiera parameter lookup
error. "puppet lookup platform::dns::resolv::servers" shows error
when the value in yaml file leads with ::. This commit fixes the
issue by putting the value in quote on yaml dump.
TEST PLAN:
PASS: Bootstrap with dns_servers ::ffff:10.10.10.1
PASS: system dns-modify nameservers=::ffff:10.10.10.1
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/906302 /opendev. org/starlingx/ config/ commit/ 51fe2ced224a18c a7e4201e89ceb15 15fb76851a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 51fe2ced224a18c a7e4201e89ceb15 15fb76851a
Author: Tara Subedi <email address hidden>
Date: Fri Jan 19 11:24:08 2024 -0500
Puppet hieradata does not properly interpret an IPv4-mapped IPv6
IPv6 IPv4-mapped prefix ::ffff is being interpreted by puppet as :dns::resolv: :servers" shows error
a Hiera parameter reference, causing a Hiera parameter lookup
error. "puppet lookup platform:
when the value in yaml file leads with ::. This commit fixes the
issue by putting the value in quote on yaml dump.
TEST PLAN: ::ffff: 10.10.10. 1
PASS: Bootstrap with dns_servers ::ffff:10.10.10.1
PASS: system dns-modify nameservers=
Closes-Bug: 2050307 fa1c51414a802b9 69a395db61f
Change-Id: I40cf7a02b22db7
Signed-off-by: Tara Nath Subedi <email address hidden>