removed unused template
diff --git a/tasks/main.yml b/tasks/main.yml index 266b109..e2f1761 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -1,10 +1,5 @@ --- # tasks file for apigee-opdk-cassandra-change-replication-factor -- name: Validate that opdk_region is provided - fail: - msg: Please indicate the opdk_region to use - when: opdk_region is not defined - - name: Validate that keyspaces collection is provided fail: msg: Please indicate the keyspaces to use @@ -15,6 +10,11 @@ msg: Please indicate the replication_factor to use when: replication_factor is not defined +- name: Validate that consistency is provided + fail: + msg: Please indicate the consistency to use + when: consistency is not defined + - include: keyspace.yml with_items: '{{ keyspaces }}' loop_control:
diff --git a/templates/alter_replication_factor.cql.j2 b/templates/alter_replication_factor.cql.j2 index b63b17c..34ec1df 100644 --- a/templates/alter_replication_factor.cql.j2 +++ b/templates/alter_replication_factor.cql.j2
@@ -1,2 +1,3 @@ -ALTER KEYSPACE {{ keyspace }} WITH REPLICATION = { 'class': 'NetworkTopologyStrategy', '{{ opdk_region }}': {{ replication_factor }} }; +ALTER KEYSPACE {{ keyspace }} WITH REPLICATION = { 'class': 'NetworkTopologyStrategy', 'dc-1': {{ replication_factor }}, 'dc-2': {{ replication_factor }} }; +CONSISTENCY {{ consistency }}