Sha256: da1686f419b827af141b8aff7cdc1456ac4eb1263355ff561651bfb25ea1ba85

Contents?: true

Size: 544 Bytes

Versions: 72

Compression:

Stored size: 544 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')).strftime('%Y-%m-%d %H:%M:%S %z') rescue nil)
  }.reject{|k,v| v === nil }

  property :chef, chef unless chef.empty?
end

Version data entries

72 entries across 72 versions & 2 rubygems

Version Path
onering-report-plugins-0.0.14 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.13 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.12 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.11 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.10 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.9 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.8 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.7 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.6 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.5 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.4 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.3 lib/reporter/default/properties_chef.rb