saltstack-formulas / docker-formula

Install and set up Docker
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
136 stars 330 forks source link

Can't manage /etc/docker/daemon.json using pillar syntax in v1.0.0 #257

Closed hkbakke closed 3 years ago

hkbakke commented 3 years ago

I seems that docker-formula v1.0.0 lost its ability to manage /etc/docker/daemon.json. The file is included in a comment behind docker:pkg:docker:config_file in pillar.example, which leads me to believe that the intention is that I should give the config in docker:pkg:docker:config and set config_file to /etc/docker/daemon.json. However the template does not render json output as it is intended for rendering /etc/default/* files. It also adds a comment which is not allowed in json files.

Have I misunderstood something or is that feature gone?

noelmcloughlin commented 3 years ago

You could use that feature in v0.44.0 (https://github.com/saltstack-formulas/docker-formula/releases/tag/v0.44.0) until a PR is raised to fix this bug issue.

arthurzenika commented 3 years ago

We'd be interrested in managing /etc/docker/daemon.json using this formula too

noelmcloughlin commented 3 years ago

Fixed in #282