Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Commit

Permalink
fix(dispatcher): add missing crunch-dispatch-local config file
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbertoli committed Nov 19, 2020
1 parent bc5882b commit 91e5896
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
12 changes: 6 additions & 6 deletions arvados/dispatcher/service/file.sls
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ include:
- .running
{%- if arvados.dispatcher.pkg.name == 'crunch-dispatch-local' %}
arvados-dispatcher-service-file-file-managed-crunch-run-sh:
arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-credentials:
file.managed:
- name: /usr/local/bin/crunch-run.sh
- source: {{ files_switch(['crunch-run-sh.tmpl'],
lookup='arvados-dispatcher-service-file-file-managed-crunch-run-sh',
- 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: '0755'
- mode: '0640'
- user: root
- group: root
- makedirs: True
Expand All @@ -47,7 +47,7 @@ arvados-dispatcher-service-file-file-managed-crunch-dispatch-local-service:
- context:
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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
########################################################################
# File managed by Salt at <{{ source }}>.
# Your changes will be overwritten.
########################################################################
# ARVADOS_API_HOST= arvados.cluster.Services.RailsAPI.InternalURLs:main
# ARVADOS_API_HOST={% for key in arvados.cluster.Services.Controller.InternalURLs %}{{ key | regex_replace('^http(s?)://', '', ignorecase=true) }}{% endfor %}
ARVADOS_API_HOST={{ arvados.cluster.Services.Controller.ExternalURL | regex_replace('^http(s?)://', '', ignorecase=true) }}
ARVADOS_API_HOST_INSECURE={{ '1' if arvados.cluster.tls.insecure | default('0') }}
ARVADOS_API_TOKEN={{ arvados.cluster.tokens.system_root }}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ StartLimitIntervalSec=0

[Service]
Type=simple
EnvironmentFile=-/etc/arvados/environment
ExecStart=/usr/bin/crunch-dispatch-local -poll-interval=1 -crunch-run-command=/usr/local/bin/crunch-run.sh
EnvironmentFile=-/etc/arvados/crunch-dispatch-local-credentials
ExecStart=/usr/bin/crunch-dispatch-local -poll-interval=1 -crunch-run-command=/usr/bin/crunch-run
# Set a reasonable default for the open file limit
LimitNOFILE=65536
Restart=always
Expand Down
6 changes: 0 additions & 6 deletions arvados/dispatcher/service/files/default/crunch-run-sh.tmpl

This file was deleted.

5 changes: 3 additions & 2 deletions test/salt/pillar/examples/nginx_passenger.sls
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ nginx:
- add_header: 'Strict-Transport-Security "max-age=63072000" always'

# OCSP stapling
- ssl_stapling: 'on'
- ssl_stapling_verify: 'on'
# FIXME! Stapling does not work with self-signed certificates, so disabling for tests
# - ssl_stapling: 'on'
# - ssl_stapling_verify: 'on'

# verify chain of trust of OCSP response using Root CA and Intermediate certs
# - ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates
Expand Down

0 comments on commit 91e5896

Please sign in to comment.