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 @@
- vars/main.yml
tasks:
- 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_monitor_store_enabled: "false"
influxdb_purge_peer_data: yes
influxdb_overwrite_hosts_file: yes
handlers:
- include: handlers/main.yml
......@@ -9,7 +9,7 @@ influxdb_install_version: stable
influxdb_cluster_servers: no
# When clustering is enabled, whether or not to overwrite the /etc/hosts file with raw
# 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
# NOTE: sample data cannot be loaded if authentication is enabled
......
......@@ -22,10 +22,10 @@
path: "{{ item }}"
state: absent
with_items:
- "{{ influxdb_meta_dir }}/id"
- "{{ influxdb_meta_dir }}/raft.db"
- "{{ influxdb_meta_dir }}/peers.json"
when: influxdb_cluster_set.changed or influxdb_purge_peer_data
- "{{ influxdb_meta_dir }}"
- "{{ influxdb_data_dir }}"
- "{{ influxdb_data_wal_dir }}"
when: influxdb_purge_peer_data
# - name: Start InfluxDB
# service:
......
Markdown is supported
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