munin-node: Add OpenBSD support

This commit is contained in:
Timo Makinen 2021-03-18 23:20:50 +00:00
parent b287591b32
commit 2f72664231
5 changed files with 18 additions and 4 deletions

View file

@ -1,5 +1,5 @@
---
- name: restart munin-node
service:
name: munin-node
name: "{{ munin_node_service }}"
state: restarted

View file

@ -1,8 +1,12 @@
---
- name: include OS-specific variables
include_vars: "{{ ansible_os_family }}.yml"
- name: install packages
package:
name: munin-node
name: "{{ item }}"
state: installed
with_items: "{{ munin_node_packages }}"
- name: create config
template:
@ -15,6 +19,6 @@
- name: enable service
service:
name: munin-node
name: "{{ munin_node_service }}"
state: started
enabled: true

View file

@ -1,6 +1,6 @@
log_level 4
log_file /var/log/munin-node/munin-node.log
log_file {{ munin_node_logfile }}
pid_file /var/run/munin/munin-node.pid
background 1

View file

@ -0,0 +1,6 @@
---
munin_node_logfile: /var/log/munin/munin-node.log
munin_node_service: munin_node
munin_node_packages:
- munin-node
- p5-Net-SSLeay

View file

@ -0,0 +1,4 @@
---
munin_node_logfile: /var/log/munin-node/munin-node.log
munin_node_service: munin-node
munin_node_packages: munin-node