Sha256: 64d04c6acce86c789d4220a3cc4e1715e2429cc72e00aed77e170f1ec87fe6d3

Contents?: true

Size: 1.67 KB

Versions: 15

Compression:

Stored size: 1.67 KB

Contents

class Setting::ForemanTasks < Setting
  def self.load_defaults
    # Check the table exists
    return unless super

    Setting::BLANK_ATTRS.push('foreman_tasks_troubleshooting_url')

    transaction do
      [
        set('foreman_tasks_sync_task_timeout', N_('Number of seconds to wait for synchronous task to finish.'), 120),
        set('dynflow_allow_dangerous_actions', N_('Allow unlocking actions which can have dangerous consequences.'), false),
        set('dynflow_enable_console', N_('Enable the dynflow console (/foreman_tasks/dynflow) for debugging'), true),
        set('dynflow_console_require_auth', N_('Require user to be authenticated as user with admin rights when accessing dynflow console'), true),
        set('foreman_tasks_proxy_action_retry_count', N_('Number of attempts to start a task on the smart proxy before failing'), 4),
        set('foreman_tasks_proxy_action_retry_interval', N_('Time in seconds between retries'), 15),
        set('foreman_tasks_proxy_batch_trigger', N_('Allow triggering tasks on the smart proxy in batches'), true),
        set('foreman_tasks_proxy_batch_size', N_('Number of tasks which should be sent to the smart proxy in one request, if foreman_tasks_proxy_batch_trigger is enabled'), 100),
        set('foreman_tasks_troubleshooting_url',
            N_('Url pointing to the task troubleshooting documentation. '\
               'It should contain %{label} placeholder, that will be replaced with normalized task label '\
               '(restricted to only alphanumeric characters)). %{version} placeholder is also available.'),
            nil)
      ].each { |s| create! s.update(:category => 'Setting::ForemanTasks') }
    end

    true
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman-tasks-0.16.3 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.11 app/models/setting/foreman_tasks.rb
foreman-tasks-0.16.2 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.10 app/models/setting/foreman_tasks.rb
foreman-tasks-0.16.1 app/models/setting/foreman_tasks.rb
foreman-tasks-0.17.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.9 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.8 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.7 app/models/setting/foreman_tasks.rb
foreman-tasks-0.16.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.6 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.5 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.4 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.3 app/models/setting/foreman_tasks.rb
foreman-tasks-0.15.2 app/models/setting/foreman_tasks.rb