Debian Codegraph @

contrib/drivers/k8s_opensuse_v1/templates/fragments/configure-flanneld-minion.sh

raw symbols SCIP
1 #!/bin/sh
2
3 . /etc/sysconfig/heat-params
4
5 if [ "$NETWORK_DRIVER" != "flannel" ]; then
6 exit 0
7 fi
8
9 sed -i '
10 /^FLANNEL_ETCD_ENDPOINTS=/ s|=.*|="http://'"$ETCD_SERVER_IP"':2379"|
11 /^#FLANNEL_OPTIONS=/ s//FLANNEL_OPTIONS="-iface eth0 --ip-masq"/
12 ' /etc/sysconfig/flanneld
13
14 cat >> /etc/sysconfig/flanneld <<EOF
15
16 # etcd config key. This is the configuration key that flannel queries
17 # For address range assignment
18 FLANNEL_ETCD_KEY="/flannel/network"
19 EOF
20
21 echo "activating flanneld service"
22 systemctl enable flanneld
23
24 echo "starting flanneld service"
25 systemctl --no-block start flanneld