Fix systemd reload and calico unit

This commit is contained in:
ant31
2016-01-25 02:01:25 +01:00
committed by Antoine Legrand
parent 2cbbcee351
commit 56b92812fa
11 changed files with 39 additions and 31 deletions

View File

@@ -13,7 +13,8 @@
dest: /usr/bin/calicoctl
state: link
- wait_for:
- name: Calico | wait for etcd
wait_for:
port: 2379
when: inventory_hostname in groups['kube-master']
@@ -68,6 +69,8 @@
when: init_system == "sysvinit" and ansible_os_family == "RedHat"
notify: restart calico-node
- meta: flush_handlers
- name: Calico | Enable calico-node
service: name=calico-node enabled=yes state=started

View File

@@ -2,7 +2,7 @@
Description=Calico per-node agent
Documentation=https://github.com/projectcalico/calico-docker
Requires=docker.service
After=docker.service etcd2.service
After=docker.service etcd.service
[Service]
User=root