diff --git a/roles/kubernetes/node/templates/rh-kubelet.initd.j2 b/roles/kubernetes/node/templates/rh-kubelet.initd.j2 index 2394b515d..95666afde 100644 --- a/roles/kubernetes/node/templates/rh-kubelet.initd.j2 +++ b/roles/kubernetes/node/templates/rh-kubelet.initd.j2 @@ -22,7 +22,7 @@ . /etc/rc.d/init.d/functions prog="kubelet" -exec="/usr/local/bin/$prog" +exec="{{ bin_dir }}/$prog" pidfile="/var/run/$prog.pid" lockfile="/var/lock/subsys/$prog" logfile="/var/log/$prog" diff --git a/roles/network_plugin/templates/calico/deb-calico.initd.j2 b/roles/network_plugin/templates/calico/deb-calico.initd.j2 index a71e03cfc..cd66de53f 100644 --- a/roles/network_plugin/templates/calico/deb-calico.initd.j2 +++ b/roles/network_plugin/templates/calico/deb-calico.initd.j2 @@ -14,7 +14,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Calico-node Docker" NAME=calico-node -DAEMON=/usr/local/bin/calicoctl +DAEMON={{ bin_dir }}/calicoctl DAEMON_ARGS="" DOCKER=$(which docker) SCRIPTNAME=/etc/init.d/$NAME diff --git a/roles/network_plugin/templates/calico/rh-calico.initd.j2 b/roles/network_plugin/templates/calico/rh-calico.initd.j2 index 5aa1ee9fa..d4f798f56 100644 --- a/roles/network_plugin/templates/calico/rh-calico.initd.j2 +++ b/roles/network_plugin/templates/calico/rh-calico.initd.j2 @@ -22,7 +22,7 @@ . /etc/rc.d/init.d/functions prog="calicoctl" -exec="/usr/local/bin/$prog" +exec="{{ bin_dir }}/$prog" dockerexec="$(which docker)" logfile="/var/log/$prog"