Skip to content

Commit

Permalink
fix(config): write daemon_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 0e6febc commit ea2505b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/software/config/daemon.sls
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
include:
- {{ sls_archive if d.pkg.docker.use_upstream == 'archive' else sls_desktop if d.pkg.docker.use_upstream == 'desktop' else sls_package }}
{{ formula }}-software-config-file-managed-config_file:
{{ formula }}-software-daemon-file-managed-daemon_file:
file.managed:
- name: {{ d.pkg.docker.config_file }}
- name: {{ d.pkg.docker.daemon_config_file }}
- source: {{ files_switch(['daemon.json.jinja'],
lookup=formula ~ '-software-config-file-managed-config_file'
lookup=formula ~ '-software-daemon-file-managed-daemon_file'
)
}}
- makedirs: True
Expand All @@ -29,7 +29,7 @@ include:
{%- endif %}
- template: jinja
- context:
config: {{ d.pkg.docker.config|json }}
config: {{ d.pkg.docker.daemon_config|json }}
- require:
- sls: {{ sls_archive if d.pkg.docker.use_upstream == 'archive' else sls_desktop if d.pkg.docker.use_upstream == 'desktop' else sls_package }}
Expand Down

0 comments on commit ea2505b

Please sign in to comment.