Sha256: ba0c6963f37a8d49e4572df691ad2b09d97a9c81f4a4b80a0196ec526e4502f5

Contents?: true

Size: 1007 Bytes

Versions: 24

Compression:

Stored size: 1007 Bytes

Contents

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

    transaction do
      [
        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_action_start_timeout', N_('Time in second during which a task has to be started on the proxy'), 60)
      ].each { |s| create! s.update(:category => 'Setting::ForemanTasks') }
    end

    true
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman-tasks-0.11.3 app/models/setting/foreman_tasks.rb
foreman-tasks-0.13.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.12.2 app/models/setting/foreman_tasks.rb
foreman-tasks-0.11.2 app/models/setting/foreman_tasks.rb
foreman-tasks-0.12.1 app/models/setting/foreman_tasks.rb
foreman-tasks-0.12.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.11.1 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.9 app/models/setting/foreman_tasks.rb
foreman-tasks-0.11.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.8 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.7 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.6 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.4 app/models/setting/foreman_tasks.rb
foreman-tasks-0.9.6 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.3 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.2 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.1 app/models/setting/foreman_tasks.rb
foreman-tasks-0.9.5 app/models/setting/foreman_tasks.rb
foreman-tasks-0.10.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.9.4 app/models/setting/foreman_tasks.rb