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

Accept connection from all servers' public 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 public IP' {{ eachServer.publicIp }} sudo ufw allow from {{ eachServer.publicIp }} {% endfor %} {% endfor %}