Sha256: c447acf2c669b9b085be38c65bb23ebbb5b32bec0e65a514bb87cf074dd508a8

Contents?: true

Size: 1.08 KB

Versions: 32

Compression:

Stored size: 1.08 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?
        defined?(Puppetclass)
      end

      def inline_help
        {
          :text => "Requires #{puppetclass_name} Puppet class. This will assign the class to the hosts or selected hostgroups.<br>Every puppet run ensures the foreman_scap_client is configured according to the policy.",
          :replace_text => 'Puppet class',
          :route_helper_method => :hash_for_puppetclasses_path
        }
      end

      def constants
        OpenStruct.new(
          :server_param => 'server',
          :port_param => 'port',
          :policies_param => 'policies',
          :puppetclass_name => 'foreman_scap_client',
          :config_item_class_name => 'Puppetclass',
          :override_method_name => 'class_params',
          :msg_name => _('Puppet class'),
          :lookup_key_plural_name => _('Smart Class Parameters')
        )
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
foreman_openscap-1.0.7 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-1.0.6 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-1.0.5 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-1.0.4 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-1.0.3 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-1.0.2 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-1.0.1 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-1.0.0 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-0.12.3 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-0.12.2 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-0.12.1 app/services/foreman_openscap/client_config/puppet.rb
foreman_openscap-0.12.0 app/services/foreman_openscap/client_config/puppet.rb