Puppet [SOLVED]: Create custom puppet fact as target of link? Home › Forums › Automation Tools › Puppet › Puppet [SOLVED]: Create custom puppet fact as target of link? Tagged: Puppet Viewing 2 posts - 1 through 2 (of 2 total) Author Posts December 24, 2017 at 1:19 am #241083 Cloudy PointKeymaster Question Looking for how to get the target of a symlink as a custom puppet fact via facter. How would I complete this: Facter.add(:link_target) do setcode do ... end end December 24, 2017 at 1:19 am #241084 Cloudy PointKeymaster Answer It’s not obvious why you would want to do this, but assuming you already know the source file and it is constant then all you would need is: Facter.add(:foo_link_target) do setcode 'readlink /path/to/foo' end If that doesn’t help, you are best to fix the question so we know what you are trying to achieve. Source: https://stackoverflow.com/questions/47840817/create-custom-puppet-fact-as-target-of-linkAuthor: Alex HarveyThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.