paulbsd-salt/states/docker/config.sls

17 lines
407 B
Plaintext
Raw Permalink Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "docker/map.jinja" import docker with context %}
docker-config-dir:
file.directory:
- name: /etc/docker
docker-config-file:
file.managed:
- name: {{ docker.config_dir }}/{{ docker.config_file }}
2023-03-11 10:08:26 +01:00
- source: salt://docker/templates/daemon.json.j2
2020-07-10 00:58:55 +02:00
- mode: 644
- template: jinja
- require:
- file: docker-config-dir
- watch_in:
2023-03-11 10:08:26 +01:00
- service: docker-service