Commit c04a5b41 authored by Ross McDonald's avatar Ross McDonald
Browse files

Modified cluster purge logic slightly (due to extra/dirty data being kept in...

Modified cluster purge logic slightly (due to extra/dirty data being kept in the WAL). Added sane, non-destructive defaults.
parent 3c4bb937
...@@ -4,9 +4,8 @@ ...@@ -4,9 +4,8 @@
- vars/main.yml - vars/main.yml
tasks: tasks:
- include: tasks/main.yml - include: tasks/main.yml
influxdb_install_url: https://s3-us-west-1.amazonaws.com/influxdata-downloads/influxdb_0.10.0-0.meta-service_amd64.deb
influxdb_cluster_servers: yes influxdb_cluster_servers: yes
influxdb_monitor_store_enabled: "false"
influxdb_purge_peer_data: yes influxdb_purge_peer_data: yes
influxdb_overwrite_hosts_file: yes
handlers: handlers:
- include: handlers/main.yml - include: handlers/main.yml
...@@ -9,7 +9,7 @@ influxdb_install_version: stable ...@@ -9,7 +9,7 @@ influxdb_install_version: stable
influxdb_cluster_servers: no influxdb_cluster_servers: no
# When clustering is enabled, whether or not to overwrite the /etc/hosts file with raw # When clustering is enabled, whether or not to overwrite the /etc/hosts file with raw
# IPs (may be useful if no DNS resolution). # IPs (may be useful if no DNS resolution).
influxdb_overwrite_hosts_file: yes influxdb_overwrite_hosts_file: no
# Whether to load sample data (randomly generated integers) into a test database # Whether to load sample data (randomly generated integers) into a test database
# NOTE: sample data cannot be loaded if authentication is enabled # NOTE: sample data cannot be loaded if authentication is enabled
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
path: "{{ item }}" path: "{{ item }}"
state: absent state: absent
with_items: with_items:
- "{{ influxdb_meta_dir }}/id" - "{{ influxdb_meta_dir }}"
- "{{ influxdb_meta_dir }}/raft.db" - "{{ influxdb_data_dir }}"
- "{{ influxdb_meta_dir }}/peers.json" - "{{ influxdb_data_wal_dir }}"
when: influxdb_cluster_set.changed or influxdb_purge_peer_data when: influxdb_purge_peer_data
# - name: Start InfluxDB # - name: Start InfluxDB
# service: # service:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment