Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
d8f75541
Commit
d8f75541
authored
Dec 04, 2020
by
julian.gethmann
Browse files
Make munin run with IPv6 and use templates and add more hosts
parent
01d39517
Changes
6
Hide whitespace changes
Inline
Side-by-side
hosts
View file @
d8f75541
...
...
@@ -163,6 +163,9 @@ gutemine.las.kit.edu
asterix.las.kit.edu
obelix.las.kit.edu
homoeopatix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
methusalix.las.kit.edu ansible_python_interpreter=/usr/bin/python3
pepe.las.kit.edu ansible_python_interpreter=/usr/bin/python3
ueberdrus.las.kit.edu ansible_python_interpreter=/usr/bin/python3
[nginx]
munin.las.kit.edu
...
...
roles/munin/files/local.conf
deleted
100644 → 0
View file @
01d39517
# Example host tree with localhost node. Configure your nodes here.
[
munin
.
las
.
kit
.
edu
]
address
127
.
0
.
0
.
1
use_node_name
yes
[
las101
.
las
.
kit
.
edu
]
address
129
.
13
.
108
.
101
use_node_name
yes
[
asterix
.
las
.
kit
.
edu
]
address
129
.
13
.
238
.
79
use_node_name
yes
[
obelix
.
las
.
kit
.
edu
]
address
129
.
13
.
108
.
126
use_node_name
yes
roles/munin/handlers/main.yml
View file @
d8f75541
...
...
@@ -34,3 +34,15 @@
permissive
:
true
# - name: set sepermissions
# command: semanage permissive -a httpd_t
-
name
:
restart firewalld
become
:
yes
service
:
name
:
firewalld
state
:
restarted
-
name
:
reload firewalld
become
:
yes
service
:
name
:
firewalld
state
:
reloaded
roles/munin/tasks/server.yml
View file @
d8f75541
...
...
@@ -10,8 +10,8 @@
-
name
:
configure munin server
become
:
yes
copy
:
src
:
local.
conf
template
:
src
:
local.
j2
dest
:
/etc/munin/conf.d/local.conf
backup
:
yes
...
...
roles/munin/templates/local.j2
0 → 100644
View file @
d8f75541
# {{ ansible_managed }}
# Example host tree with localhost node. Configure your nodes here.
{% for host in groups['munin'] %}
[{{host}}]
address {{host}}
use_node_name yes
{% endfor %}
roles/munin/templates/munin-node.j2
View file @
d8f75541
...
...
@@ -44,6 +44,7 @@ host_name {{ ansible_fqdn }}
# may repeat the allow line as many times as you'd like
allow ^129\.13\.238\.100$
allow ^2a00:1398:4:8200:21a:4bff:fe46:e741$
allow ^127\.0\.0\.1$
allow ^::1$
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment