Add munin host
This commit is contained in:
parent
cab7f424d5
commit
ff87fa1151
4 changed files with 43 additions and 0 deletions
8
group_vars/munin.yml
Normal file
8
group_vars/munin.yml
Normal 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]}
|
6
host_vars/munin01.home.foo.sh.yml
Normal file
6
host_vars/munin01.home.foo.sh.yml
Normal 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
4
hosts
|
@ -27,6 +27,9 @@ mail02.home.foo.sh
|
||||||
[mirror]
|
[mirror]
|
||||||
mirror01.home.foo.sh
|
mirror01.home.foo.sh
|
||||||
|
|
||||||
|
[munin]
|
||||||
|
munin01.home.foo.sh
|
||||||
|
|
||||||
[nas]
|
[nas]
|
||||||
nas02.home.foo.sh
|
nas02.home.foo.sh
|
||||||
|
|
||||||
|
@ -59,6 +62,7 @@ adm
|
||||||
git
|
git
|
||||||
mail
|
mail
|
||||||
mirror
|
mirror
|
||||||
|
munin
|
||||||
nas
|
nas
|
||||||
shell
|
shell
|
||||||
static
|
static
|
||||||
|
|
25
playbooks/munin.yml
Normal file
25
playbooks/munin.yml
Normal 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
|
Loading…
Add table
Reference in a new issue