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.54 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.53 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.52 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.51 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.50 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.49 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.48 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.47 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.46 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.45 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.44 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.43 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.42 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.41 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.40 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.39 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.38 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.37 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.36 lib/reporter/default/properties_chef.rb
onering-report-plugins-0.0.35 lib/reporter/default/properties_chef.rb