Pārlūkot izejas kodu

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 pirms 6 gadiem
vecāks
revīzija
58a0dc667b
2 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      salt/files/_api.conf
  2. +1
    -0
      tests/pillar/master_api.sls

+ 3
- 0
salt/files/_api.conf Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt