@Override
protected void beforeConfigure(ClusterActionEvent event)
throws IOException, InterruptedException {
ClusterSpec clusterSpec = event.getClusterSpec();
Cluster cluster = event.getCluster();
LOG.info("Authorizing firewall");
ComputeServiceContext computeServiceContext =
ComputeServiceContextBuilder.build(clusterSpec);
FirewallSettings.authorizeIngress(computeServiceContext,
cluster.getInstances(), clusterSpec, CLIENT_PORT);
FirewallSettings.authorizeIngress(computeServiceContext,
cluster.getInstances(), clusterSpec, JMX_PORT);
List<Instance> seeds = getSeeds(cluster.getInstances());
String servers = Joiner.on(' ').join(getPrivateIps(seeds));
addRunUrl(event, "apache/cassandra/post-configure",
"-c", clusterSpec.getProvider(), servers);
}