X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/87b357e33a88d78da311f1860a7f95850a816850..7f41ee686a38f70d40d2713b44d480e5490ec3d1:/arvados/dispatcher/service/file.sls diff --git a/arvados/dispatcher/service/file.sls b/arvados/dispatcher/service/file.sls index df75286..504f423 100644 --- a/arvados/dispatcher/service/file.sls +++ b/arvados/dispatcher/service/file.sls @@ -25,6 +25,23 @@ arvados-dispatcher-service-file-file-managed-crunch-run-sh: - user: root - group: root - makedirs: True + - context: + arvados: {{ arvados | json }} + - require: + - pkg: arvados-dispatcher-package-install-pkg-installed + +arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-credentials: + file.managed: + - name: /etc/arvados/crunch-dispatch-local-credentials + - source: {{ files_switch(['crunch-dispatch-local-credentials.tmpl'], + lookup='arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-credentials', + use_subpath=True + ) + }} + - mode: '0640' + - user: root + - group: root + - makedirs: True - template: jinja - context: arvados: {{ arvados | json }} @@ -48,6 +65,7 @@ arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-service: arvados: {{ arvados | json }} - require: - file: arvados-dispatcher-service-file-file-managed-crunch-run-sh + - file: arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-credentials - pkg: arvados-dispatcher-package-install-pkg-installed cmd.run: - name: systemctl daemon-reload @@ -55,4 +73,6 @@ arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-service: - service: arvados-dispatcher-service-running-service-running - require: - file: arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-service + - onchanges: + - file: arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-service {%- endif %}