paulbsd-salt/states/docker/config.sls
Paul Lecuq a3b02771a4
All checks were successful
continuous-integration/drone/push Build is passing
created templates folder on each state
2023-03-11 10:08:26 +01:00

17 lines
407 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/templates/daemon.json.j2
- mode: 644
- template: jinja
- require:
- file: docker-config-dir
- watch_in:
- service: docker-service