munin-node: Add OpenBSD support
This commit is contained in:
parent
b287591b32
commit
2f72664231
5 changed files with 18 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: restart munin-node
|
- name: restart munin-node
|
||||||
service:
|
service:
|
||||||
name: munin-node
|
name: "{{ munin_node_service }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
---
|
---
|
||||||
|
- name: include OS-specific variables
|
||||||
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
package:
|
||||||
name: munin-node
|
name: "{{ item }}"
|
||||||
state: installed
|
state: installed
|
||||||
|
with_items: "{{ munin_node_packages }}"
|
||||||
|
|
||||||
- name: create config
|
- name: create config
|
||||||
template:
|
template:
|
||||||
|
@ -15,6 +19,6 @@
|
||||||
|
|
||||||
- name: enable service
|
- name: enable service
|
||||||
service:
|
service:
|
||||||
name: munin-node
|
name: "{{ munin_node_service }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
log_level 4
|
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
|
pid_file /var/run/munin/munin-node.pid
|
||||||
|
|
||||||
background 1
|
background 1
|
||||||
|
|
6
roles/munin-node/vars/OpenBSD.yml
Normal file
6
roles/munin-node/vars/OpenBSD.yml
Normal 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
|
4
roles/munin-node/vars/RedHat.yml
Normal file
4
roles/munin-node/vars/RedHat.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue