influxdb: Fix listen addr and data directory path
This commit is contained in:
parent
b128852405
commit
6bc466e191
3 changed files with 6 additions and 9 deletions
3
roles/influxdb/files/config.toml
Normal file
3
roles/influxdb/files/config.toml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
bolt-path = "/srv/influxdb/influxd.bolt"
|
||||||
|
engine-path = "/srv/influxdb/engine"
|
||||||
|
http-bind-address = "127.0.0.1:8086"
|
|
@ -1,6 +0,0 @@
|
||||||
INFLUXDB_META_DIR="/srv/influxdb/meta"
|
|
||||||
INFLUXDB_DATA_DIR="/srv/influxdb/data"
|
|
||||||
INFLUXDB_DATA_WAL_DIR="/srv/influxdb/wal"
|
|
||||||
|
|
||||||
INFLUXDB_HTTP_BIND_ADDRESS="127.0.0.1:8086"
|
|
||||||
INFLUXDB_HTTP_AUTH_ENABLED=true
|
|
|
@ -42,10 +42,10 @@
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
follow: false
|
follow: false
|
||||||
|
|
||||||
- name: create config
|
- name: create config.toml
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/default/influxdb
|
dest: /etc/influxdb/config.toml
|
||||||
src: influxdb.sysconfig
|
src: config.toml
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue