From ff87fa1151e02d20454d9fd5671ced0d27af2e02 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 18 Mar 2021 00:01:15 +0000 Subject: [PATCH] Add munin host --- group_vars/munin.yml | 8 ++++++++ host_vars/munin01.home.foo.sh.yml | 6 ++++++ hosts | 4 ++++ playbooks/munin.yml | 25 +++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 group_vars/munin.yml create mode 100644 host_vars/munin01.home.foo.sh.yml create mode 100644 playbooks/munin.yml diff --git a/group_vars/munin.yml b/group_vars/munin.yml new file mode 100644 index 0000000..1c7de95 --- /dev/null +++ b/group_vars/munin.yml @@ -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]} diff --git a/host_vars/munin01.home.foo.sh.yml b/host_vars/munin01.home.foo.sh.yml new file mode 100644 index 0000000..5ab5053 --- /dev/null +++ b/host_vars/munin01.home.foo.sh.yml @@ -0,0 +1,6 @@ +--- +vmhost: vmhost01.home.foo.sh +network_interfaces: + - device: eth0 + vlan: 20 + mac: 52:54:00:ac:dc:3f diff --git a/hosts b/hosts index 81a93d3..a63cf77 100644 --- a/hosts +++ b/hosts @@ -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 diff --git a/playbooks/munin.yml b/playbooks/munin.yml new file mode 100644 index 0000000..c97ca8c --- /dev/null +++ b/playbooks/munin.yml @@ -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