Sha256: 451e4c5f2c8b65c3f8f9b042223208494b868f247c74902754c4b15e9a75bb29

Contents?: true

Size: 321 Bytes

Versions: 4

Compression:

Stored size: 321 Bytes

Contents

module ForemanPuppet
  module HostInfoProviders
    class ConfigGroupsInfo < HostInfo::Provider
      def host_info
        config_groups = (host.puppet.config_groups + host.puppet.parent_config_groups).uniq.map(&:name)
        { 'parameters' => { 'foreman_config_groups' => config_groups } }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_puppet-1.0.0.rc.1 app/services/foreman_puppet/host_info_providers/config_groups_info.rb
foreman_puppet-0.1.0 app/services/foreman_puppet/host_info_providers/config_groups_info.rb
foreman_puppet-0.0.2 app/services/foreman_puppet/host_info_providers/config_groups_info.rb
foreman_puppet-0.0.1 app/services/foreman_puppet/host_info_providers/config_groups_info.rb