The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Bug #10089

Updated by James Turnbull over 3 years ago


http://projects.puppetlabs.com/projects/1/wiki/Ruby_Dsl

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.

puppet-2.6.8-1.el5

Back