-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
137 lines (126 loc) · 4.37 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
---
cmk_ansible_version: 1.0.0
# Feature toggles
cmk_enable_cmk: true
cmk_enable_thruk: true
cmk_enable_nsca: true
cmk_enable_grafana: true
cmk_enable_dual_graphing: true
# This one is only required for my testing purposes, when a fully installed checkmk isn't required
cmk_enable_quicktest: false
# Checkmk variables
cmk_version: 2.0.0p3
cmk_site_name: cmk
cmk_apt_requirements:
- apt-transport-https
- freeipmi
- telnet
- libipc-run-perl
- mtr
- git
#- python-netsnmp
- mailutils
- python3-passlib
- dirmngr
- xz-utils
- python3-setuptools
- python3-pip
- libsnmp-dev
- python3-requests
cmk_apt_requirements_ubuntu:
- snmpd
- python3-pip
- python3-passlib
cmk_rpm_requirements:
- epel-release
- python3-pip
- python3-passlib
- net-snmp
- freeipmi
- telnet
# libipc-run-perl
- mtr
- git-core
#- mailutils
- python3-setuptools
- net-snmp-devel
- gnupg2
- python3-requests
- python36-devel
cmk_python_requirements:
- influxdb
- python3-netsnmp
cmk_default_user: cmkadmin
cmk_default_password: cmk
# Allowed values: nagios, none. icinga isn't supported anymore
cmk_monitoring_core: nagios
cmk_site_config:
- { name: ADMIN_MAIL, value: "cmk@example.com" }
- { name: AUTOSTART, value: "on" }
- { name: CORE, value: "{{ cmk_monitoring_core }}" }
- { name: TMPFS, value: "on" }
- { name: APACHE_MODE, value: "own" }
- { name: APACHE_TCP_ADDR, value: "127.0.0.1" }
- { name: MULTISITE_AUTHORISATION, value: "on" }
- { name: MULTISITE_COOKIE_AUTH, value: "on" }
- { name: NAGIOS_THEME, value: "exfoliation" }
- { name: MKEVENTD, value: "on" }
- { name: MKEVENTD_SNMPTRAP, value: "on" }
- { name: MKEVENTD_SYSLOG, value: "on" }
- { name: MKEVENTD_SYSLOG_TCP, value: "on" }
- { name: PNP4NAGIOS, value: "gearman" }
- { name: LIVESTATUS_TCP, value: "off" }
- { name: LIVESTATUS_TCP_ONLY_FROM, value: "0.0.0.0" }
- { name: LIVESTATUS_TCP_PORT, value: "6557" }
- { name: LIVESTATUS_TCP_TLS, value: "off" }
- { name: NSCA, value: "off" }
cmk_debian_url: "https://download.checkmk.com/checkmk/{{ cmk_version }}/check-mk-raw-{{ cmk_version }}_0.{{ ansible_distribution_release }}_amd64.deb"
cmk_redhat_url: "https://download.checkmk.com/checkmk/{{ cmk_version }}/check-mk-raw-{{ cmk_version }}-el8-38.x86_64.rpm"
cmk_domain: "http://{{ ansible_nodename }}"
# Thruk
cmk_thruk_menu: |
do '/usr/share/thruk/menu.conf';
add_link('name' => 'Wato', 'href' => '/{{ cmk_site_name }}/', target => '_blank');
# InfluxDB
cmk_influxdb_nagflux_name: nagflux
cmk_influxdb_nagflux_user: nagflux
cmk_influxdb_nagflux_password: nagflux
cmk_influxdb_hostname: "{{ ansible_hostname }}"
cmk_influx_bind_address: 127.0.0.1:8086
# Grafana
cmk_grafana_datasource_name: influxdb-{{ cmk_influxdb_nagflux_name }}
cmk_grafana_settings:
- { section: server, option: http_addr, value: 127.0.0.1 }
- { section: server, option: root_url, value: "%(protocol)s://%(domain)s:%(http_port)s/grafana/" }
- { section: security, option: admin_user, value: "{{ cmk_default_user }}" }
- { section: security, option: admin_password, value: "{{ cmk_default_password }}" }
- { section: security, option: allow_embedding, value: "true" }
- { section: security, option: disable_gravatar, value: "true" }
- { section: snapshots, option: external_enabled, value: "false" }
- { section: auth.basic, option: enabled, value: "false" }
- { section: auth.proxy, option: enabled, value: "true" }
- { section: auth.proxy, option: auto_sign_up, value: "true" }
- { section: users, option: allow_sign_up, value: "false" }
- { section: users, option: auto_assign_org, value: "true" }
- { section: analytics, option: reporting_enabled, value: "false" }
- { section: analytics, option: check_for_updates, value: "false" }
# Histou
# https://github.com/Griesbacher/histou/releases
cmk_histou_version: 0.4.3
# Nagflux
# https://github.com/Griesbacher/nagflux/releases
cmk_nagflux_version: 0.4.1
# mod-gearman
cmk_mod_gearman_secret: YOURSECRETHERE
## NSCA
cmk_nsca_version: 9975fc7
cmk_nsca_daemon_settings:
- option: password
value: HalloWelt
- option: decryption_method
value: 3
cmk_nsca_client_settings:
- option: password
value: HalloWelt
- option: encryption_method
value: 3