updated replication factor change process
diff --git a/tasks/main.yml b/tasks/main.yml index 09fcbd4..5623c2f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -9,6 +9,10 @@ fail: msg: Please indicate the replication_factor to use when: replication_factor is not defined +# +#- include: quorum.yml +# vars: +# consistency: TWO - include: keyspace.yml with_items: '{{ keyspaces }}'
diff --git a/tasks/quorum.yml b/tasks/quorum.yml deleted file mode 100644 index c037ac1..0000000 --- a/tasks/quorum.yml +++ /dev/null
@@ -1,22 +0,0 @@ ---- -- name: Set the local_quorum setting - set_fact: - lq: "{{ local_quorum | default(false) | bool }}" - -- name: Set consistency to LOCAL_QUORUM when local_quorum is set - set_fact: - consistency: LOCAL_QUORUM - when: lq - -- name: Set consistency to QUORUM when local_quorum is not set - set_fact: - consistency: QUORUM - when: not lq - -- name: Construct CQL file - template: - src: quorum.cql.j2 - dest: /tmp/quorum.cql - -- name: Appy consistency settings - shell: "{{ apigee_installation_home }}/apigee-cassandra/bin/cqlsh -f /tmp/quorum.cql {{ local_address }} "
diff --git a/templates/quorum.cql.j2 b/templates/quorum.cql.j2 deleted file mode 100644 index c98d478..0000000 --- a/templates/quorum.cql.j2 +++ /dev/null
@@ -1 +0,0 @@ -CONSISTENCY {{ consistency }};