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-0.6.13 lib/reporter/default/properties_chef.rb
onering-report-0.6.12 lib/reporter/default/properties_chef.rb
onering-report-0.6.11 lib/reporter/default/properties_chef.rb
onering-report-0.6.10 lib/reporter/default/properties_chef.rb
onering-report-0.6.9 lib/reporter/default/properties_chef.rb
onering-report-0.6.8 lib/reporter/default/properties_chef.rb
onering-report-0.6.7 lib/reporter/default/properties_chef.rb
onering-report-0.6.6 lib/reporter/default/properties_chef.rb
onering-report-0.6.5 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.65 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.64 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.63 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.62 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.61 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.60 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.59 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.58 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.57 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.56 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.55 lib/reporter/default/properties_chef.rb