Improve error scenarios for user sync; Ensure user sync runs before Elastic container starts

This commit is contained in:
Jason Ertel
2021-05-26 12:08:10 -04:00
parent ec2f8fe6c8
commit a6a4c03029
2 changed files with 13 additions and 0 deletions

View File

@@ -169,6 +169,14 @@ eslogdir:
- group: 939
- makedirs: True
# Must run before elasticsearch docker container is started!
syncesusers:
cmd.run:
- name: so-user sync
- creates:
- /opt/so/conf/elasticsearch/users
- /opt/so/conf/elasticsearch/users_roles
so-elasticsearch:
docker_container.running:
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-elasticsearch:{{ VERSION }}