paulbsd-salt/states/docker/config.sls
2020-07-10 00:58:55 +02:00

16 lines
396 B
Plaintext

---
{%- 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 }}
- source: salt://docker/daemon.json.j2
- mode: 644
- template: jinja
- require:
- file: docker-config-dir
- watch_in:
- service: docker-service