Browse Source

Make rest api timeout configureable.

It is important to be able to increase timeouts on api when running
orchestrate tasks via pepper.

Change-Id: I3ff0988bfec3ec4715348c5de15247fe0b075443
pull/73/head
Dzmitry Stremkouski 6 years ago
parent
commit
58a0dc667b
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      salt/files/_api.conf
  2. +1
    -0
      tests/pillar/master_api.sls

+ 3
- 0
salt/files/_api.conf View File

@@ -22,6 +22,9 @@ rest_cherrypy:
disable_ssl: True
{%- endif %}
expire_responses: {{ api.get('expire_responses', False) }}
{%- if api.rest_timeout is defined %}
rest-timeout: {{ api.rest_timeout }}
{%- endif %}
{%- if api.get('debug', False) %}
debug: True
{%- endif %}

+ 1
- 0
tests/pillar/master_api.sls View File

@@ -20,6 +20,7 @@ salt:
formula: {}
api:
enabled: true
rest_timeout: 7200
ssl:
engine: salt
bind:

Loading…
Cancel
Save