On 7/17/12 11:30 PM, julien cosmao wrote:
> Hi,
> 
> I want to introduce "Proxmox" as new value in $::operatingsystem.
> "Proxmox" is based on Debian, so the normal value is currently "Debian".
> 
> To change that, I just write a custom fact based on the facter fact
> "operatingsystem"
> 
>     Facter.add(:operatingsystem) do
>      ...
>        setcode do
>        ...
>        elsif FileTest.exists?("/usr/bin/pveversion")
>            "Proxmox"
> 
> 
> This method doesn't override the original fact.
> 
> I've also tried to set $::operatingsystem = "Proxmox" directly in my node.
> 
> What's the best way to do override an existing fact ?
> 
> Regards,
> 
> Julien

Created feature request[1] #15579 to add Proxmox support to facter.

[1] - http://projects.puppetlabs.com/issues/15579

-g

-- 
Garrett Honeycutt

206.414.8658
http://puppetlabs.com


-- 
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