The Puppet Labs Issue Tracker has Moved:

Bug #10089

Updated by James Turnbull over 3 years ago

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.