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.34 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.33 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.32 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.31 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.30 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.29 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.28 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.27 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.26 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.25 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.24 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.23 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.22 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.21 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.20 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.19 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.18 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.17 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.16 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.15 lib/reporter/default/properties_chef.rb