Browse Source

Add environment templating to concourse_worker state

master
Sean Johnson 3 years ago
parent
commit
15308696d1
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 9FA15B87469EA850
  1. 1
      app/concourse_worker/defaults.yaml
  2. 6
      app/concourse_worker/init.sls

1
app/concourse_worker/defaults.yaml

@ -5,6 +5,7 @@ container:
tag: latest
restart: unless-stopped
shm_size: 64M
env: {}
settings:
data_dir: /opt/concourse/data

6
app/concourse_worker/init.sls

@ -48,6 +48,12 @@ concourse worker container:
- binds:
- {{ settings.data_dir }}:/data:ro
- /var/run/docker.sock:/var/run/docker.sock
{% if container.env %}
- environment:
{%- for key, value in container.env.items() %}
- {{ key }}: {{ value | yaml_squote }}
{%- endfor %}
{% endif %}
- command: >
worker
--tsa-host={{ settings.tsa_host }}

Loading…
Cancel
Save