updated influxdb state

This commit is contained in:
Paul 2022-07-27 23:49:30 +02:00
parent 04f3573c90
commit e33a258079
3 changed files with 8 additions and 11 deletions

View File

@ -2,8 +2,6 @@
influxdb: influxdb:
enabled: true enabled: true
mirror: "https://dl.influxdata.com/influxdb/releases" mirror: "https://dl.influxdata.com/influxdb/releases"
dependencies:
- collectd
install_dir: "/usr/local/apps" install_dir: "/usr/local/apps"
release_dir: "/usr/local/apps/releases" release_dir: "/usr/local/apps/releases"
config_dir: "/etc/influxdb" config_dir: "/etc/influxdb"
@ -12,8 +10,11 @@ influxdb:
version: "1.8.0" version: "1.8.0"
os: linux os: linux
arch: amd64 arch: amd64
uid: 901 port: 8086
gid: 901 adminport: 8083
binaries:
- influx
- influxd
user: user:
name: influxdb name: influxdb
uid: 901 uid: 901

View File

@ -17,13 +17,13 @@
[http] [http]
enabled = true enabled = true
bind-address = ":8086" bind-address = ":{{ influxdb.port }}"
auth-enabled = true auth-enabled = true
log-enabled = true log-enabled = true
[admin] [admin]
enabled = true enabled = true
bind-address = ":8083" bind-address = ":{{ influxdb.adminport }}"
https-enabled = false https-enabled = false
[ifql] [ifql]

View File

@ -18,10 +18,6 @@ influxdb-user:
- watch_in: - watch_in:
- service: influxdb-service - service: influxdb-service
influxdb-dependencies:
pkg.installed:
- pkgs: {{ influxdb.dependencies }}
influxdb-archive-extract: influxdb-archive-extract:
archive.extracted: archive.extracted:
- name: {{ influxdb.release_dir }}/influxdb-{{ influxdb.version }} - name: {{ influxdb.release_dir }}/influxdb-{{ influxdb.version }}
@ -47,7 +43,7 @@ influxdb-data-dir:
- watch_in: - watch_in:
- service: influxdb-service - service: influxdb-service
{%- for bin in ['influx', 'influxd'] %} {%- for bin in influxdb.binaries %}
influxdb-{{ bin }}-symlink: influxdb-{{ bin }}-symlink:
file.symlink: file.symlink:
- name: /usr/local/sbin/{{ bin }} - name: /usr/local/sbin/{{ bin }}