On Friday, 6 December 2013 14:27:47 UTC, Felix.Frank wrote:
>
>
> If you want to use $clustername instead of hiera("clustername"), just
> add this to the global scope of your manifest:
>
> $clustername = hiera("clustername")
>
Thanks for your response, I'd tried adding that to the global scope
Hello all
So is it possible to use hiera data in a custom facts? I'm probably going
about this all wrong, but I was hoping something like this would work.
Facter.add("cluster_name") do
setcode do
hiera('clustername')
end
end
But I get a lot of
Could not retrieve cluster_name: undefined