munin für alle (#37)
Merge branch 'master' into moni docker users aufgeräumt doku doku sensors bei fileserver entfernt sensors bei docker aus gruppe mg docker allgemeine munin-node vars in all pve listening interface angepasst default ipv4 munin in firewall aber nicht für test munin für alle Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#37 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
parent
b05fd5e48b
commit
834c232c15
12 changed files with 52 additions and 13 deletions
|
@ -10,6 +10,11 @@
|
||||||
to_port: 9999
|
to_port: 9999
|
||||||
from_ip: 192.168.2.0/24
|
from_ip: 192.168.2.0/24
|
||||||
comment: 'acng'
|
comment: 'acng'
|
||||||
|
- rule: allow
|
||||||
|
to_port: 4949
|
||||||
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
|
from_ip: 192.168.2.0/24
|
||||||
### mgrote.acng
|
### mgrote.acng
|
||||||
acng_server_port: 9999
|
acng_server_port: 9999
|
||||||
acng_server_exthreshold: "60" #hebt Pakete 60 Tage auf
|
acng_server_exthreshold: "60" #hebt Pakete 60 Tage auf
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
---
|
---
|
||||||
|
### geerlingguy.munin-node
|
||||||
|
munin_node_bind_host: "0.0.0.0"
|
||||||
|
munin_node_bind_port: "4949"
|
||||||
|
munin_node_allowed_cidrs: [192.168.2.0/24]
|
||||||
### wird in vielen Rollen verwendet
|
### wird in vielen Rollen verwendet
|
||||||
empfaenger_mail: michael.grote@posteo.de
|
empfaenger_mail: michael.grote@posteo.de
|
||||||
file_header: |
|
file_header: |
|
||||||
|
@ -69,7 +73,7 @@
|
||||||
use_sudo: yes
|
use_sudo: yes
|
||||||
use_sudo_nopass: yes
|
use_sudo_nopass: yes
|
||||||
user_state: present
|
user_state: present
|
||||||
groups: ssh, sudo
|
groups: ssh, sudo, docker
|
||||||
servers:
|
servers:
|
||||||
- production
|
- production
|
||||||
- test
|
- test
|
||||||
|
|
|
@ -6,15 +6,13 @@
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
comment: 'ssh'
|
comment: 'ssh'
|
||||||
from_ip: 192.168.2.0/24
|
from_ip: 192.168.2.0/24
|
||||||
# Weitere Regeln sind nicht notwendig da Docker iptables selber verwaltet.
|
- rule: allow # hier fehlt das netz, da der munin master in einem docker container auf diesem host läüft der eine andere ip hat
|
||||||
# - rule: allow
|
to_port: 4949
|
||||||
# comment: 'alles erlauben'
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
### geerlingguy.docker
|
### geerlingguy.docker
|
||||||
docker_users:
|
docker_users:
|
||||||
- mg
|
- mg
|
||||||
- root
|
|
||||||
- ansible-user
|
|
||||||
- git
|
|
||||||
### mgrote.restic
|
### mgrote.restic
|
||||||
restic_folders_to_backup: /usr/local /etc /root /home /var/lib/docker
|
restic_folders_to_backup: /usr/local /etc /root /home /var/lib/docker
|
||||||
restic_cron_hours: "*"
|
restic_cron_hours: "*"
|
||||||
|
@ -29,3 +27,6 @@
|
||||||
/var/lib/docker/volumes/***musik***
|
/var/lib/docker/volumes/***musik***
|
||||||
# https://github.com/restic/restic/issues/1005
|
# https://github.com/restic/restic/issues/1005
|
||||||
# https://forum.restic.net/t/exclude-syntax-confusion/1531/12
|
# https://forum.restic.net/t/exclude-syntax-confusion/1531/12
|
||||||
|
### geerlingguy.munin-node
|
||||||
|
munin_node_remove_plugins:
|
||||||
|
- name: sensors
|
||||||
|
|
|
@ -12,3 +12,8 @@
|
||||||
to_port: 80
|
to_port: 80
|
||||||
comment: 'dokuwiki-webserver'
|
comment: 'dokuwiki-webserver'
|
||||||
from_ip: 192.168.2.0/24
|
from_ip: 192.168.2.0/24
|
||||||
|
- rule: allow
|
||||||
|
to_port: 4949
|
||||||
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
|
from_ip: 192.168.2.0/24
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
### geerlingguy.munin-node
|
||||||
|
munin_node_remove_plugins:
|
||||||
|
- name: sensors
|
||||||
### mgrote.smb_fileserver
|
### mgrote.smb_fileserver
|
||||||
smb_users:
|
smb_users:
|
||||||
- name: 'annemariedroessler'
|
- name: 'annemariedroessler'
|
||||||
|
@ -84,3 +87,8 @@
|
||||||
to_port: 139
|
to_port: 139
|
||||||
comment: 'smb'
|
comment: 'smb'
|
||||||
from_ip: 192.168.2.0/24
|
from_ip: 192.168.2.0/24
|
||||||
|
- rule: allow
|
||||||
|
to_port: 4949
|
||||||
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
|
from_ip: 192.168.2.0/24
|
||||||
|
|
|
@ -18,6 +18,11 @@
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
comment: 'gitea'
|
comment: 'gitea'
|
||||||
from_ip: 192.168.2.0/24
|
from_ip: 192.168.2.0/24
|
||||||
|
- rule: allow
|
||||||
|
to_port: 4949
|
||||||
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
|
from_ip: 192.168.2.0/24
|
||||||
### tmaurice.gitea
|
### tmaurice.gitea
|
||||||
gitea_version: "1.13.4"
|
gitea_version: "1.13.4"
|
||||||
gitea_app_name: "Gitea"
|
gitea_app_name: "Gitea"
|
||||||
|
|
|
@ -10,6 +10,11 @@
|
||||||
to_port: 123
|
to_port: 123
|
||||||
comment: 'ntp'
|
comment: 'ntp'
|
||||||
from_ip: 192.168.2.0/24
|
from_ip: 192.168.2.0/24
|
||||||
|
- rule: allow
|
||||||
|
to_port: 4949
|
||||||
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
|
from_ip: 192.168.2.0/24
|
||||||
### mgrote.ntp_chrony_server
|
### mgrote.ntp_chrony_server
|
||||||
ntp_chrony_timezone: "Europe/Berlin" # Zeitzone in der sich der Computer befindet
|
ntp_chrony_timezone: "Europe/Berlin" # Zeitzone in der sich der Computer befindet
|
||||||
ntp_chrony_driftfile_directory: "/var/lib/chrony" # Ordner für das driftfile
|
ntp_chrony_driftfile_directory: "/var/lib/chrony" # Ordner für das driftfile
|
||||||
|
|
|
@ -19,3 +19,8 @@
|
||||||
- rule: allow
|
- rule: allow
|
||||||
to_port: 68
|
to_port: 68
|
||||||
comment: 'pihole-dhcp'
|
comment: 'pihole-dhcp'
|
||||||
|
- rule: allow
|
||||||
|
to_port: 4949
|
||||||
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
|
from_ip: 192.168.2.0/24
|
||||||
|
|
|
@ -18,9 +18,6 @@
|
||||||
### mgrote.apcupsd
|
### mgrote.apcupsd
|
||||||
apcupsd_slave_polltime: 10 #in Sekunden
|
apcupsd_slave_polltime: 10 #in Sekunden
|
||||||
### geerlingguy.munin-node
|
### geerlingguy.munin-node
|
||||||
munin_node_bind_host: "*"
|
|
||||||
munin_node_bind_port: "4949"
|
|
||||||
munin_node_allowed_cidrs: [192.168.2.0/24]
|
|
||||||
munin_node_plugins:
|
munin_node_plugins:
|
||||||
- name: apc_nis
|
- name: apc_nis
|
||||||
- name: hddtemp_smartctl
|
- name: hddtemp_smartctl
|
||||||
|
|
|
@ -16,4 +16,9 @@
|
||||||
comment: 'wireguard'
|
comment: 'wireguard'
|
||||||
interface: ens18
|
interface: ens18
|
||||||
protocol: udp
|
protocol: udp
|
||||||
|
- rule: allow
|
||||||
|
to_port: 4949
|
||||||
|
protocol: tcp
|
||||||
|
comment: 'munin-node'
|
||||||
|
from_ip: 192.168.2.0/24
|
||||||
ufw_etc_default_default_forward_policy: ACCEPT
|
ufw_etc_default_default_forward_policy: ACCEPT
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
- { role: geerlingguy.munin-node,
|
- { role: geerlingguy.munin-node,
|
||||||
become: true,
|
become: true,
|
||||||
tags: "munin",
|
tags: "munin",
|
||||||
when: "'physical' in group_names" }
|
when: "not 'test' in group_names" }
|
||||||
|
|
||||||
### Die Host müssen auch beim Docker-Container: "munin-master eingetragen" werden.
|
### Die Host müssen auch beim Docker-Container: "munin-master eingetragen" werden.
|
||||||
### wird nur auf physischen Rechnern ausgeführt.
|
### wird nur auf physischen Rechnern ausgeführt.
|
||||||
### Wenn ein Plugin nicht geht: munin-node-configure --shell --families=contrib,auto | sh -x
|
### Wenn ein Plugin nicht geht: munin-node-configure --shell --families=contrib,auto | sh -x
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
munin_node_bind_host: "*"
|
munin_node_bind_host: "0.0.0.0"
|
||||||
munin_node_bind_port: "4949"
|
munin_node_bind_port: "4949"
|
||||||
|
|
||||||
munin_node_host_name: ''
|
munin_node_host_name: ''
|
||||||
|
|
Loading…
Reference in a new issue