How can I use a puppet/facter fact like ${$::hostname} in a Foreman smart class parameter?
I've tried $hostname and $::hostname and just about every variant I can think of! I've even trawled through Google and Foreman docs and bug reports. Surely there's a simple answer?
It's an old question, but you use facts like you do in a ERB template, example:
<%= @host.shortname %>
would get you xyz of xyz.example.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.