Merge pull request #387 from kubespray/dockerwants

Fix etcd restart and calico-node unit
This commit is contained in:
Antoine Legrand 2016-07-29 07:59:22 -07:00 committed by GitHub
commit b91f8630a3
9 changed files with 32 additions and 32 deletions

View file

@ -2,14 +2,14 @@
- name: restart docker - name: restart docker
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Docker | reload systemd
- reload docker - Docker | reload docker
- name : reload systemd - name : Docker | reload systemd
shell: systemctl daemon-reload shell: systemctl daemon-reload
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: reload docker - name: Docker | reload docker
service: service:
name: docker name: docker
state: restarted state: restarted

View file

@ -2,18 +2,18 @@
- name: restart etcd - name: restart etcd
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - etcd | reload systemd
- reload etcd - reload etcd
- wait for etcd up - wait for etcd up
- name: restart etcd-proxy - name: restart etcd-proxy
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - etcd | reload systemd
- reload etcd-proxy - reload etcd-proxy
- wait for etcd up - wait for etcd up
- name: reload systemd - name: etcd | reload systemd
command: systemctl daemon-reload command: systemctl daemon-reload
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"

View file

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=etcd docker wrapper Description=etcd docker wrapper
Wants=docker.service Wants=docker.socket
After=docker.service After=docker.service
[Service] [Service]

View file

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=etcd-proxy docker wrapper Description=etcd-proxy docker wrapper
Wants=docker.service Wants=docker.socket
After=docker.service After=docker.service
[Service] [Service]

View file

@ -2,14 +2,14 @@
- name: restart kubelet - name: restart kubelet
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Kubelet | reload systemd
- reload kubelet - Kubelet | reload kubelet
- name: reload systemd - name: Kubelet | reload systemd
command: systemctl daemon-reload command: systemctl daemon-reload
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: reload kubelet - name: Kubelet | reload kubelet
service: service:
name: kubelet name: kubelet
state: restarted state: restarted

View file

@ -2,15 +2,15 @@
- name: restart calico-node - name: restart calico-node
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Calico | reload systemd
- reload calico-node - Calico | reload calico-node
- name : reload systemd - name : Calico | reload systemd
shell: systemctl daemon-reload shell: systemctl daemon-reload
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: reload calico-node - name: Calico | reload calico-node
service: service:
name: calico-node name: calico-node
state: restarted state: restarted
sleep: 10 sleep: 10

View file

@ -1,8 +1,8 @@
[Unit] [Unit]
Description=Calico per-node agent Description=Calico per-node agent
Documentation=https://github.com/projectcalico/calico-docker Documentation=https://github.com/projectcalico/calico-docker
Wants=docker.service etcd-proxy.service
After=docker.service etcd-proxy.service After=docker.service etcd-proxy.service
Wants=docker.socket
[Service] [Service]
User=root User=root

View file

@ -7,20 +7,20 @@
- name: restart docker - name: restart docker
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Flannel | reload systemd
- reload docker - Flannel | reload docker
- reload kubelet - Flannel | reload kubelet
- name : reload systemd - name : Flannel | reload systemd
shell: systemctl daemon-reload shell: systemctl daemon-reload
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: reload docker - name: Flannel | reload docker
service: service:
name: docker name: docker
state: restarted state: restarted
- name: reload kubelet - name: Flannel | reload kubelet
service: service:
name: kubelet name: kubelet
state: restarted state: restarted

View file

@ -2,32 +2,32 @@
- name: restart docker - name: restart docker
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Weave | reload systemd
- reload docker - Weave | reload docker
- name : reload systemd - name : Weave | reload systemd
shell: systemctl daemon-reload shell: systemctl daemon-reload
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: restart weave - name: restart weave
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Weave | reload systemd
- reload weave - reload weave
- name: restart weaveproxy - name: restart weaveproxy
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Weave | reload systemd
- reload weaveproxy - reload weaveproxy
- name: restart weaveexpose - name: restart weaveexpose
command: /bin/true command: /bin/true
notify: notify:
- reload systemd - Weave | reload systemd
- reload weaveexpose - reload weaveexpose
- name: reload docker - name: Weave | reload docker
service: service:
name: docker name: docker
state: restarted state: restarted