-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.yml
172 lines (148 loc) · 4.3 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
# package to install
librenms_packages:
- curl
- apache2
- composer
- fping
- git
- graphviz
- imagemagick
- mtr-tiny
- nmap
- python3-memcache
- python3-mysqldb
- rrdtool
- snmp
- snmpd
- whois
- acl
- monitoring-plugins
- nagios-plugins-contrib
- python3-pip
# User and group to create with home directory
librenms_user: librenms
librenms_home: /opt/librenms
librenms_group: "{{ librenms_user }}"
# SQL database to create
librenms_sql_databases:
- name: librenms
encoding: utf8
collation: utf8_unicode_ci
# SQL database password, must be set
# librenms_sql_db_password:
# SQL Users to create
librenms_sql_users:
- name: librenms
password: "{{ librenms_sql_db_password | mandatory }}"
priv: "librenms.*:ALL"
# Default admin user and password
librenms_admin_user: admin
# only set once during installation
librenms_admin_password: admin
# The auth mechanism to use (mysql, ldap)
librenms_config_auth_mechanism: mysql
# The librenms baseurl
librenms_config_base_url: "http://{{ librenms_config_mydomain }}"
# The librenms domain
librenms_config_mydomain: "{{ inventory_hostname }}"
# Ignore interfaces
librenms_config_bad_if_regexps:
- '/^docker[\w]+$/'
- '/^lxcbr[0-9]+$/'
- '/^fwln.+$/'
- '/^fwpr.+$/'
- '/^fwbr.+$/'
- '/^br.+$/'
- '/^veth.*$/'
- '/^virbr.*$/'
- '/^lo$/'
- '/^sit.*$/'
- '/^dummy.*$/'
# - '/^macvtap.*$/'
# - '/tun[0-9]+$/'
# Ignore the following mounts
librenms_ignore_mounts:
# common
- /run
- /run/lock
- /sys/fs/cgroup
- /dev/shm
# pve
- /boot/efi
# synology
- /tmp
# thecus
- /rom
- /syslog
- /var
- /etc
# Ignore the following mounts (regex)
librenms_ignore_mounts_regexp: []
# e.g.
#
# # jenkins and jenkins nodes
# - /^\/run\/user\/\d+/
# # NFS mount points on thecus
# - /^\/raid\d+\/data\/_NAS_NFS_Exports_\/.+/
# # Thecus raidsys
# - /^\/raidsys\/\d+/
# Path to the rrdached socket.
# librenms_rrdcached: unix:/run/rrdcached.sock
# The rrdtool version that is used
librenms_rrdtool_version: 1.7.2
# Parallel threads for the librenms poller
librenms_poller_threads: 3
# Networks for autodiscovery
librenms_config_nets: []
# - 192.168.10.0/24
# snmp configuration
librenms_config_snmp_timeout: 1
librenms_config_snmp_retries: 3
librenms_config_snmp_community: community
librenms_config_snmp_authlevel: authPriv
# must be set!
# librenms_config_snmp_authname: # "snmp-user"
# librenms_config_snmp_authpass: # "snmp-password"
# librenms_config_snmp_cryptopass: # "snmp-encryption"
# When set to true ldap is configured and the other ldap variables must be set
librenms_config_ldap: false
# The server to use
librenms_config_auth_ldap_server: # e.g. ldap.main.corp
# The server to use
librenms_config_auth_ldap_suffix: # e.g. "ou=users,ou=location,dc=main,dc=corp"
librenms_config_auth_ldap_groupbase: # e.g. "ou=groups,ou=location,dc=main,dc=corp"
librenms_config_auth_ldap_group: # e.g. "cn=all,ou=groups,ou=location,dc=main,dc=corp"
librenms_config_auth_ldap_binddn: # e.g. "uid=ldapbind,ou=system,ou=location,dc=main,dc=corp"
librenms_config_auth_ldap_bindpassword: # e.g. "password_from_ldapbinduser"
# Enables, disables proxmox in librenms
librenms_config_enable_proxmox: 1
# Enables/Disables influxdb feature
librenms_config_influxdb_enable: false
# The influxdb host
librenms_config_influxdb_host:
# The influxdb port
librenms_config_influxdb_port: 8006
# The influxdb database to use
librenms_config_influxdb_db: librenms
# The username for the influxdb
librenms_config_influxdb_username: librenms
# The password for the influxdb
librenms_config_influxdb_password: librenms
# cleanup options, see https://docs.librenms.org/Support/Cleanup-options/
librenms_config_eventlog_purge: 30
librenms_config_syslog_purge: 30
librenms_config_route_purge: 10
librenms_config_alert_log_purge: 365
librenms_config_authlog_purge: 30
librenms_config_ports_fdb_purge: 10
librenms_config_device_perf_purge: 7
librenms_config_rrd_purge: 0
librenms_config_ports_purge: 10
# The services to restart when php.ini was touched
librenms_php_restart_services:
- apache2
librenms_nagios_plugins_dir: /usr/lib/nagios/plugins
librenms_nagios_plugins:
- url: https://gist.githubusercontent.com/tobias-richter/5d73a0bab773ee24f01a93cea20059d9/raw/df17577e2bade03fa5068c5571b5bbb2e6cff6d2/check_mdraid_mismatch
name: check_mdraid_mismatch