Sha256: 469b63b901b1cd48fc5eaa9cbadda0d13a3a56e409611f44468f26cd5b71b492
Contents?: true
Size: 1.3 KB
Versions: 14
Compression:
Stored size: 1.3 KB
Contents
module ForemanOpenscap module ClientConfig class Puppet < Base delegate :puppetclass_name, :to => :constants alias config_item_name puppetclass_name def type :puppet end def available? Foreman::Plugin.installed?("foreman_puppet") end def inline_help t1 = _("Requires %s Puppet class. This will assign the class to the hosts or selected hostgroups.") % puppetclass_name t2 = _("Every puppet run ensures the foreman_scap_client is configured according to the policy.") { :text => "#{t1}<br>#{t2}", :replace_text => 'Puppet class', :route_helper_method => :hash_for_puppetclasses_path } end def collection_method :puppetclasses end def constants OpenStruct.new( :server_param => 'server', :port_param => 'port', :policies_param => 'policies', :puppetclass_name => 'foreman_scap_client', :config_item_class_name => 'ForemanPuppet::Puppetclass', :override_method_name => 'class_params', :msg_name => _('Puppet class'), :lookup_key_plural_name => _('Smart Class Parameters'), :policies_param_default_value => ds_policies_param_default_value ) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems