open-nomad/scripts/install_rkt_vagrant.sh
2017-01-27 16:08:21 -08:00

12 lines
402 B
Bash
Executable file

#!/bin/bash
set -e
# Configure rkt networking
sudo mkdir -p /etc/rkt/net.d
if [[ -f /etc/rkt/net.d/99-network.conf ]]; then
echo "rkt network already configured; Skipping"
exit
fi
echo '{"name": "default", "type": "ptp", "ipMasq": false, "ipam": { "type": "host-local", "subnet": "172.16.28.0/24", "routes": [ { "dst": "0.0.0.0/0" } ] } }' | jq . | sudo tee -a /etc/rkt/net.d/99-network.conf