mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Merge pull request #4584 from Security-Onion-Solutions/kilo
retry on so-dockerregistry
This commit is contained in:
@@ -241,7 +241,7 @@ function syncAll() {
|
|||||||
staleCount=$(echo "select count(*) from identity_credentials where updated_at >= Datetime('now', '-${usersFileAgeSecs} seconds');" \
|
staleCount=$(echo "select count(*) from identity_credentials where updated_at >= Datetime('now', '-${usersFileAgeSecs} seconds');" \
|
||||||
| sqlite3 "$databasePath")
|
| sqlite3 "$databasePath")
|
||||||
if [[ "$staleCount" == "0" ]]; then
|
if [[ "$staleCount" == "0" ]]; then
|
||||||
fail "Users are already in sync. Run 'FORCE_SYNC=1 $0 sync' to force a full sync anyway."
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
syncElastic
|
syncElastic
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ so-dockerregistry:
|
|||||||
- /nsm/docker-registry/docker:/var/lib/registry/docker:rw
|
- /nsm/docker-registry/docker:/var/lib/registry/docker:rw
|
||||||
- /etc/pki/registry.crt:/etc/pki/registry.crt:ro
|
- /etc/pki/registry.crt:/etc/pki/registry.crt:ro
|
||||||
- /etc/pki/registry.key:/etc/pki/registry.key:ro
|
- /etc/pki/registry.key:/etc/pki/registry.key:ro
|
||||||
|
- timeout: 180
|
||||||
|
- retry:
|
||||||
|
attempts: 5
|
||||||
|
interval: 30
|
||||||
|
|
||||||
append_so-dockerregistry_so-status.conf:
|
append_so-dockerregistry_so-status.conf:
|
||||||
file.append:
|
file.append:
|
||||||
@@ -55,4 +59,4 @@ append_so-dockerregistry_so-status.conf:
|
|||||||
test.fail_without_changes:
|
test.fail_without_changes:
|
||||||
- name: {{sls}}_state_not_allowed
|
- name: {{sls}}_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{%- set WEBACCESS = salt['pillar.get']('global:url_base', '') -%}
|
{%- set WEBACCESS = salt['pillar.get']('global:url_base', '') -%}
|
||||||
{%- set KRATOSKEY = salt['pillar.get']('kratos:kratoskey', '') -%}
|
{%- set KRATOSKEY = salt['pillar.get']('kratos:kratoskey', '') -%}
|
||||||
|
{%- set SESSIONTIMEOUT = salt['pillar.get']('kratos:sessiontimeout', '24h') -%}
|
||||||
|
|
||||||
|
session:
|
||||||
|
lifespan: {{ SESSIONTIMEOUT }}
|
||||||
|
|
||||||
selfservice:
|
selfservice:
|
||||||
methods:
|
methods:
|
||||||
|
|||||||
Reference in New Issue
Block a user