Sha256: 3cdb35826f50f6b9e617a73fec763330a92780ac3ac92b55c61b8c1fc4be189f
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
# Onering Collector - Chef Properties plugin # provides collection of Chef metadata # report do chef = { :name => Facter.value('chef_nodename'), :environment => Facter.value('chef_environment'), :@run_list => Facter.value('chef_runlist'), :enabled => Facter.value('chef_enabled'), :version => Facter.value('chef_version'), :last_ran_at => (Time.at(Facter.value('chef_lastrun')) rescue nil) }.reject{|k,v| v === nil } property :chef, chef unless chef.empty? end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onering-report-plugins-0.0.2 | lib/reporter/default/properties_chef.rb |
onering-report-plugins-0.0.1 | lib/reporter/default/properties_chef.rb |