fix docker reload again
it apparently doesnt work to use service.running to
do the reload. using cmd.run is reliable
fix#reload-cert
{{ cert | indent(8) }}
- require_in:
- docker
+ - onchanges_in:
+ - docker-reload-config
{% endfor %}
@@ -88,12 +90,7 @@ docker-proxy-config:
- /etc/sysconfig/docker
docker-reload-config:
- service.running:
- - name: docker
- - reload: True
+ cmd.run:
+ - name: systemctl reload docker
- onchanges:
- file: /etc/docker/daemon.json
- {% for cert_tuple in certs.items() %}
- {% set name, _cert = cert_tuple %}
- - file: /etc/docker/certs.d/{{ name }}/ca.crt
- {% endfor %}
