Class: ForemanPuppet::HostInfoProviders::ConfigGroupsInfo
- Inherits:
-
HostInfo::Provider
- Object
- HostInfo::Provider
- ForemanPuppet::HostInfoProviders::ConfigGroupsInfo
- Defined in:
- app/services/foreman_puppet/host_info_providers/config_groups_info.rb
Instance Method Summary collapse
Instance Method Details
#host_info ⇒ Object
4 5 6 7 8 9 |
# File 'app/services/foreman_puppet/host_info_providers/config_groups_info.rb', line 4 def host_info return {} unless host.puppet config_groups = (host.puppet.config_groups + host.puppet.parent_config_groups).uniq.map(&:name) { 'parameters' => { 'foreman_config_groups' => config_groups } } end |