Add munin host

This commit is contained in:
Timo Makinen 2021-03-18 00:01:15 +00:00
parent cab7f424d5
commit ff87fa1151
4 changed files with 43 additions and 0 deletions

8
group_vars/munin.yml Normal file
View file

@ -0,0 +1,8 @@
---
datadisks:
- 10
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 443, from: [172.20.20.0/22]}

View file

@ -0,0 +1,6 @@
---
vmhost: vmhost01.home.foo.sh
network_interfaces:
- device: eth0
vlan: 20
mac: 52:54:00:ac:dc:3f

4
hosts
View file

@ -27,6 +27,9 @@ mail02.home.foo.sh
[mirror]
mirror01.home.foo.sh
[munin]
munin01.home.foo.sh
[nas]
nas02.home.foo.sh
@ -59,6 +62,7 @@ adm
git
mail
mirror
munin
nas
shell
static

25
playbooks/munin.yml Normal file
View file

@ -0,0 +1,25 @@
---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=munin"
- name: configure instance
hosts: munin
user: root
gather_facts: true
pre_tasks:
- name: mount /export
mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
vars_files:
- "{{ ansible_private }}/vars.yml"
roles:
- base
- munin-master