For "Site A"
Edit your "Site A" ServAssure NXT Inventory file and add the following groups and hosts:
Copy the Cassandra groups and hosts from your "Site B" inventory, but rename the groups as shown in the example. The groups MUST be prepended with "site_b_" to avoid interfering with the existing Cassandra groups and hosts in your "Site A" inventory. The "Site B" Cassandra nodes must be named exactly how they are in the "Site B" inventory and must be reachable from the Ansible server.
Example:
########################################################
### FAILOVER CASSANDRA CLUSTER NODES ################
#
# NOTE: MUST BE USED WITH "CASSANDRA_MULTI_DC"
# VARIABLES IN SITE_VARS
#
[site_b_cassandra_seeds]
siteB_cassandra_seeds_node rack=RAC1 ansible_host=x.x.x.x
[site_b_cassandra_other]
siteB_cassandra_other_node1 rack=RAC3 ansible_host=x.x.x.x
siteB_cassandra_other_node1 rack=RAC2 ansible_host=x.x.x.x
[site_b_cassandra:children]
site_b_cassandra_seeds
site_b_cassandra_other
########################################################
For "Site B"
Edit your "Site B" ServAssure NXT Inventory file and add the following groups and hosts:
Copy the Cassandra groups and hosts from your "Site A" inventory, but rename the groups as shown in the example. The groups MUST be prepended with "site_a_" to avoid interfering with the existing Cassandra groups and hosts in your "Site B" inventory. The "Site A" Cassandra nodes must be named exactly how they are in the "Site A" inventory and must be reachable from the Ansible server.
Example:
########################################################
### FAILOVER CASSANDRA CLUSTER NODES ################
#
# NOTE: MUST BE USED WITH "CASSANDRA_MULTI_DC"
# VARIABLES IN SITE_VARS
#
[site_a_cassandra_seeds]
siteA_cassandra_seeds_node rack=RAC1 ansible_host=x.x.x.x
[site_a_cassandra_other]
siteA_cassandra_other_node1 rack=RAC3 ansible_host=x.x.x.x
siteA_cassandra_other_node1 rack=RAC2 ansible_host=x.x.x.x
[site_a_cassandra:children]
site_a_cassandra_seeds
site_a_cassandra_other
########################################################
