Hi, 

I am trying to override a hostname.rp from path: *
/usr/lib/ruby/site_ruby/1.8/facter* as,

Facter.add(:hostname) do
  confine :hostname => "serialnumber"
  setcode do
    Facter::Util::Resolution.exec('cat /sys/power/states')
  end
end

Is the fact code correct as I want puppet to pick serialnumber instead of 
hostname from facter ?

Thanks
mac01 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/dPw-mMSTV04J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to