Browse Source

Remove unused configure-flannel.sh

As of Ica87610b9114bff4277b492de8fe528fe2860108, this file is no longer
referenced by anything.

Change-Id: I01c6f9f86b8c5894e9d7941ead52a4c5c08d38a7
changes/95/394495/1
Drago Rosson 5 years ago
parent
commit
fad39cf881
1 changed files with 0 additions and 30 deletions
  1. +0
    -30
      magnum/drivers/common/templates/kubernetes/fragments/configure-flannel.sh

+ 0
- 30
magnum/drivers/common/templates/kubernetes/fragments/configure-flannel.sh View File

@ -1,30 +0,0 @@
#!/bin/sh
. /etc/sysconfig/heat-params
. /etc/sysconfig/flanneld
FLANNEL_JSON=/etc/sysconfig/flannel-network.json
# Generate a flannel configuration that we will
# store into etcd using curl.
cat > $FLANNEL_JSON <<EOF
{
"Network": "$FLANNEL_NETWORK_CIDR",
"Subnetlen": $FLANNEL_NETWORK_SUBNETLEN,
"Backend": {
"Type": "$FLANNEL_BACKEND"
}
}
EOF
# wait for etcd to become active (we will need it to push the flanneld config)
while ! curl -sf -o /dev/null $FLANNEL_ETCD/v2/keys/; do
echo "waiting for etcd"
sleep 1
done
# put the flannel config in etcd
echo "creating flanneld config in etcd"
curl -sf -L $FLANNEL_ETCD/v2/keys/coreos.com/network/config \
-X PUT \
--data-urlencode value@/etc/sysconfig/flannel-network.json

Loading…
Cancel
Save