change repos to repo

This commit is contained in:
m0duspwnens
2022-01-25 10:53:28 -05:00
parent a72f12c4c7
commit a92e2a917b

View File

@@ -235,9 +235,9 @@ eslogdir:
- group: 939 - group: 939
- makedirs: True - makedirs: True
es_repos_dir: es_repo_dir:
file.directory: file.directory:
- name: /nsm/elasticsearch/repos/ - name: /nsm/elasticsearch/repo/
- user: 930 - user: 930
- group: 939 - group: 939
- require: - require:
@@ -327,9 +327,9 @@ so-elasticsearch:
{% endif %} {% endif %}
{% if ES_PATH_REPO %} {% if ES_PATH_REPO %}
{% for repo in ES_PATH_REPO %} {% for repo in ES_PATH_REPO %}
# /nsm/elasticsearch/repos{{ repo }} must exist as a symlink for the bind to be created # /nsm/elasticsearch/repo{{ repo }} must exist as a symlink for the bind to be created
{% if salt['cmd.retcode']("[[ ! test -L /nsm/elasticsearch/repos{{ repo }} ]]") %} {% if salt['cmd.retcode']("[[ ! test -L /nsm/elasticsearch/repo{{ repo }} ]]") %}
- /nsm/elasticsearch/repos{{ repo }}:{{ repo }}:rw - /nsm/elasticsearch/repo{{ repo }}:{{ repo }}:rw
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}