Skip to content
Snippets Groups Projects
Commit 992f210e authored by void's avatar void
Browse files

influx instanz für systemmonitoring

parent 42a2269a
No related branches found
No related tags found
No related merge requests found
......@@ -6,5 +6,13 @@ ldap_ip_ext: 10.0.20.2
# int ist noch ungenutzt / später replikation in der Zone
ldap_ip_int: 10.0.20.2
ldap_base_dn: DC=warpzone,DC=ms
ldap_readonly_bind_dn: CN=readonly,DC=warpzone,DC=ms
\ No newline at end of file
ldap_base_dn: dc=warpzone,dc=ms
ldap_readonly_bind_dn: cn=readonly,dc=warpzone,dc=ms
# Zentrale InfluxDb für Systemmonitoring
influxdb_sysmon:
url: "http:// 192.168.0.201:18086"
db: "influx"
user: "influx"
password: "influx"
---
- include: ../functions/get_secret.yml
with_items:
- { path: /srv/influx/influx_admin_pw, length: 24 }
- name: create folder struct for influx
file:
path: "{{ item }}"
state: "directory"
with_items:
- /srv/influx/
- /srv/influx/sysmon/
- name: Konfig-Dateien erstellen
template:
src: "{{ item }}"
dest: "/srv/influx/{{ item }}"
with_items:
- docker-compose.yml
- name: Script-Dateien erstellen
template:
src: "{{ item }}"
dest: "/srv/influx/{{ item }}"
mode: "o+rwx"
with_items:
- influx_sysmon.sh
- name: start influx docker
docker_service:
project_src: /srv/influx/
state: present
version: "3"
services:
sysmon:
image: influxdb:1.5.3
restart: always
ports:
- 0.0.0.0:18086:8086
volumes:
- /srv/influx/sysmon/:/var/lib/influxdb
environment:
INFLUXDB_DB: "{{influxdb_sysmon.db}}"
INFLUXDB_ADMIN_USER: "admin"
INFLUXDB_ADMIN_PASSWORD: "{{ influx_admin_pw }}"
INFLUXDB_USER: "{{influxdb_sysmon.user}}"
INFLUXDB_USER_PASSWORD: "{{influxdb_sysmon.password}}"
INFLUXDB_HTTP_AUTH_ENABLED: "true"
#!/bin/sh
# Influx Admin Konsole
# Usage: ./influx_sysmon.sh
docker-compose exec sysmon influx -database "{{influxdb_sysmon.db}}" -password "{{ influx_admin_pw }}" -username "admin"
---
- name: create folder struct for influxdb
file:
path: "{{ item }}"
state: "directory"
with_items:
- "/srv/influxdb/"
- "/srv/influxdb/data/"
- name: Docker Compose Konfig-Datei erstellen
template:
src: "docker-compose.yml"
dest: "/srv/influxdb/docker-compose.yml"
- name: start influxdb docker
docker_service:
project_src: /srv/influxdb/
state: present
version: "3"
services:
db:
image: influxdb:1.5.1
restart: always
ports:
- 8086:8086
- 2003:2003
volumes:
- /srv/influxdb/data/:/var/lib/influxdb
environment:
INFLUXDB_GRAPHITE_ENABLED: "true"
......@@ -9,7 +9,7 @@
- { role: ../common/docker, tags: docker }
- { role: nginx, tags: nginx }
- { role: docker_grafana, tags: grafana }
- { role: docker_influxdb, tags: influxdb }
- { role: docker_influx, tags: influx }
- { role: docker_iobroker, tags: iobroker }
- { role: docker_librenms, tags: librenms }
- { role: docker_l4z0r, tags: l4z0r }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment