Skip to content

Commit

Permalink
fix(config): write config dictionary to daemon.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Smit committed Apr 20, 2021
1 parent 3d002dd commit 413cf58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ docker:

docker:
version: '19.03.9' # archive package version
config_file: /etc/default/docker # /etc/docker/daemon.json
config_file: /etc/docker/daemon.json
config: {}
environ_file: /etc/default/docker
environ: {}
Expand Down
8 changes: 8 additions & 0 deletions docker/files/default/daemon.json.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
########################################################################
# File managed by Salt at <{{ source }}>.
# Your changes may be overwritten.
########################################################################

{%- if config %}
{{ config|json(indent=2) }}
{%- endif %}
2 changes: 1 addition & 1 deletion docker/software/config/file.sls
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include:
{{ formula }}-software-config-file-managed-config_file:
file.managed:
- name: {{ d.pkg.docker.config_file }}
- source: {{ files_switch(['config.sh.jinja'],
- source: {{ files_switch(['daemon.json.jinja'],
lookup=formula ~ '-software-config-file-managed-config_file'
)
}}
Expand Down

0 comments on commit 413cf58

Please sign in to comment.