Sha256: abf1d5c68ab253806dabd25f035686d5c0f00d3192d6ca2c501d0d90db21d571
Contents?: true
Size: 452 Bytes
Versions: 67
Compression:
Stored size: 452 Bytes
Contents
# Onering Facts - OpenVZ Properties # provides collection of OpenVZ (host and guest) properties # require 'json' # get list of OpenVZ container hostnames from the host vzlist = Facter::Util::Resolution.exec("vzlist -o hostname | tail -n+2 2> /dev/null") if vzlist if not vzlist.empty? Facter.add('openvz_containers') do setcode do vzlist.split("\n").collect{|i| i.strip.chomp }.reject{|i| i.empty? } end end end end
Version data entries
67 entries across 67 versions & 2 rubygems