Commit graph

6 commits

Author SHA1 Message Date
Bogdan Dobrelya
4cd2b891c7 Rework systemd reload handler
When daemon reloaded, it disturbs docker. Wait for docker
when doing systemctl daemon reload. Do that as well to fix
the network_plugin/weave : reload weaveproxy.
Also don't do a 10 sec sleep when restarting docker, instead
rely on the waiter which checks docker via CLI.

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-08-24 14:56:18 +02:00
Matthew Mosesohn
e8a1c7a53f Move docker systemd unit creation to docker role
Creating the unit using default settings early on
and then changing it during network_plugin section
leads to too many docker restarts and duplicated code.

Reversed Wants= dependence on docker.service so it does not
restart docker when reloading systemd

Consolidated all docker restart handlers.
2016-08-02 17:56:24 +03:00
Matthew Mosesohn
5668e5f767 Fix etcd restart and handler systemd tasks
Changed Wants=docker.service to docker.socket

Renamed handlers for reloading systemd to contain role in task name.
2016-07-29 16:32:35 +03:00
Spencer Smith
66d9a6ebbc updated to use handlers 2016-05-12 12:18:38 -07:00
Smaine Kahlouch
9f07f2a951 install docker on a largest number of linux distribution (based on https://github.com/marklee77/ansible-role-docker) 2015-12-30 22:26:45 +01:00
Smaine Kahlouch
00c562828f Initial commit 2015-10-03 22:19:50 +02:00