I want to be able to leverage some Foreman variables in Puppet for information already managed in Foreman. I have defined some global parameters, but they do not behave the same way when using Foreman variables vs. explicitly defining the information, even though the information is the same. For example:
Global Parameters: nameservers | [<%= @host.subnet.dns_primary %>, <%= @host.subnet.dns_secondary %>] | Array ntpservers | ["192.168.2.21", "192.168.2.20"] | Array Host yaml output: nameservers: "[192.168.2.21, 192.168.2.20]" ntpservers: - 192.168.2.21 - 192.168.2.20
So, despite defining the nameservers as an Array, it is collapsed into a string when the Foreman variables are replaced.
The nameservers should be preserved as an array, and look just like the ntpservers in the yaml output.
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Distribution and version:
Anyone know how it can be done to preserve the arrays? I did try defining it as YAML, and breaking each variable out as a yaml item, but those are similarly collapsed into a string.