Skip to content
Snippets Groups Projects
Commit 98e2d695 authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

Merge pull request #128 from ansibl8s/fix_calico_initd_ip

calico uses --ip option
parents bf5582b0 779299de
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,10 @@ ...@@ -55,6 +55,10 @@
template: src=calico/calico.conf.j2 dest=/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/calico_kubernetes.ini template: src=calico/calico.conf.j2 dest=/usr/libexec/kubernetes/kubelet-plugins/net/exec/calico/calico_kubernetes.ini
notify: restart calico-node notify: restart calico-node
- name: Calico | Write /etc/network-environment
template: src=calico/network-environment.j2 dest=/etc/network-environment
when: init_system == "sysvinit"
- name: Calico | Write calico-node systemd init file - name: Calico | Write calico-node systemd init file
template: src=calico/calico-node.service.j2 dest=/etc/systemd/system/calico-node.service template: src=calico/calico-node.service.j2 dest=/etc/systemd/system/calico-node.service
when: init_system == "systemd" when: init_system == "systemd"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
# Description: # Description:
# Runs calico as a docker container # Runs calico as a docker container
### END INIT INFO ### END INIT INFO
set -a
PATH=/sbin:/usr/sbin:/bin:/usr/bin PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Calico-node Docker" DESC="Calico-node Docker"
......
DEFAULT_IPV4={{ip | default(ansible_default_ipv4.address) }}
ETCD_AUTHORITY=127.0.0.1:2379
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# #
# chkconfig: 2345 95 95 # chkconfig: 2345 95 95
# description: Daemon for calico-node (http://www.projectcalico.org/) # description: Daemon for calico-node (http://www.projectcalico.org/)
set -a
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: calico-node # Provides: calico-node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment