The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
The usage of Facts in Ruby DSL is not documented
|Assignee:||Nick Fagerlund||% Done:|
|Keywords:||ruby dsl facts||Affected URL:|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.
The above page documents how to use the Ruby DSL. The problem is that it is unclear/undocumented how to use Agent Facts.
Someone mentioned that “Facter[:operatingsystem].value” should return the operatingsystem of the Agent, but this returns the operatingsystem of the PuppetMaster instead.
Please document in the page mentioned above how to use Facts in Ruby DSL.