I am having a tough time with the following custom fact; details below.
The custom fact needs to look for a certain json
file in the following folder. This displays the information when used within a manifest. But, when I add it to the custom fact, it does not work.
"/opt/${::hostname}/${::custom_variable}_${::fqdn}.json"
However, if I hard code the values as shown below, it works fine.
"/opt/host1.domain.com/mycompany_host1.json"
Note that the custom variable is defined on the Puppet console against "classification."