Hi, Thanks !
Hailee, your solution works great. Very usefull for me. 2012/7/18 Garrett Honeycutt <[email protected]> > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- Julien COSMAO tel: +33(0)6 32 34 99 87 Mail : [email protected] -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
