proxmox4/lib/facter/is_proxmox.rb

8 lines
101 B
Ruby

#is_proxmox.rb
Facter.add("is_proxmox") do
setcode do
FileTest.exists?("/etc/pve/")
end
end