Shell script `default/allow-private-ip-from-inclusters'

Accept connection from all servers' private IPs in inCluster

{% for eachCluster in inClusters %} echo 'Cluster' {{ eachCluster.name }} {% for eachServer in eachCluster.servers %} echo '#{{ loop.index }} Allow connections from' {{ eachServer.name }} 'with private IP' {{ eachServer.privateIp }} sudo ufw allow from {{ eachServer.privateIp }} {% endfor %} {% endfor %}