Project

General

Profile

Revision 1ae286c8

Added by Marek Hulán over 7 years ago

Fixes #9843 - Attach chef environment as a fact

View differences:

lib/chef_handler_foreman/foreman_facts.rb
27 27
      os      = node.lsb[:id] || node.platform
28 28
      release = node.lsb[:release] || node.platform_version
29 29

  
30
      # operatingsystem and operatingsystemrelase are not needed since foreman_chef 0.1.3
30 31
      { :name  => node.name,
31 32
        :facts => plain_attributes.merge({
33
                                             :environment            => node.chef_environment,
34
                                             :chef_node_name         => node.name,
32 35
                                             :operatingsystem        => normalize(os),
33 36
                                             :operatingsystemrelease => release,
34 37
                                             :_timestamp             => Time.now,

Also available in: Unified diff