2016-10-18 23:58:25 +00:00
|
|
|
#!/bin/bash
|
2017-01-27 21:08:50 +00:00
|
|
|
set -e
|
2016-10-18 23:58:25 +00:00
|
|
|
|
|
|
|
# Configure rkt networking
|
|
|
|
sudo mkdir -p /etc/rkt/net.d
|
2017-01-27 21:08:50 +00:00
|
|
|
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
|
2016-10-18 23:58:25 +00:00
|
|
|
|