On 8 October 2011 09:26, Adrien Thebo <adr...@puppetlabs.com> wrote:

> You can effectively override a fact by setting the weight, as follows
>
> Facter.add(:hostname) do
>  has_weight 200
>  setcode do
>    # your own hostname implementation
>  end
> end
>
>
Now that is something worth knowing. Can this be added to the documentation?
I can't see reference to it in
http://docs.puppetlabs.com/guides/custom_facts.html or
http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts

Thanks

John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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