#!/bin/bash set -u if [ "$DIB_ROLE" == "controller" ] ; then ip="192.168.25.4" elif [ "$DIB_ROLE" == "compute" ] ; then ip="192.168.25.5" else echo "DIB_ROLE must be either 'controller' or 'compute'." exit 1 fi cat > /etc/network/interfaces <