search for: pveversion

Displaying 1 result from an estimated 1 matches for "pveversion".

Did you mean: preversion
2012 Jul 17
8
How to override $::operatingsystem fact
...ox" 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 -- You received this m...