Commit b40b0b1a authored by Tim Gross's avatar Tim Gross
Browse files

add CNI plugins to Vagrant install

Showing with 24 additions and 0 deletions
+24 -0
......@@ -137,6 +137,10 @@ def configureLinuxProvisioners(vmCfg)
privileged: true,
path: './scripts/vagrant-linux-priv-consul.sh'
vmCfg.vm.provision "shell",
privileged: true,
path: './scripts/vagrant-linux-priv-cni.sh'
vmCfg.vm.provision "shell",
privileged: true,
path: './scripts/vagrant-linux-priv-vault.sh'
......
#!/usr/bin/env bash
set -o errexit
VERSION="v0.8.2"
DOWNLOAD=https://github.com/containernetworking/plugins/releases/download/${VERSION}/cni-plugins-linux-amd64-${VERSION}.tgz
TARGET_DIR=/opt/cni/bin
function install_cni() {
mkdir -p ${TARGET_DIR}
if [[ -e ${TARGET_DIR}/${VERSION} ]] ; then
return
fi
wget -q -O /tmp/cni-plugins.tar.gz ${DOWNLOAD}
tar -xf /tmp/cni-plugins.tar.gz -C ${TARGET_DIR}
touch ${TARGET_DIR}/${VERSION}
}
install_cni
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment