ff
Some checks failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/pr/ansible-lint Pipeline failed
ci/woodpecker/push/ansible-lint Pipeline failed

This commit is contained in:
Michael Grote 2024-08-12 13:06:55 +02:00
parent c859aa95f2
commit 36ad021bd6
5 changed files with 30 additions and 43 deletions

View file

@ -18,3 +18,10 @@ munin_servername: "{{ ansible_fwdn }}"
munin_dirs:
- /var/run/munin
- /etc/munin/plugins
munin_server_plugins:
- munin_stats
- munin_update
munin_hosts:
- name: "{{ ansible_fqdn }}"
address: "127.0.0.1"
extra: ["use_node_name yes"]

View file

@ -36,16 +36,21 @@
mode: '0755'
loop: "{{ munin_server_plugins }}"
- name: Template munin config
ansible.builtin.template:
src: munin.conf
dest: /etc/munin/munin.conf
mode: '0644'
owner: munin
group: munin
COPY munin.conf /etc/munin/munin.conf
COPY ssmtp.conf /etc/ssmtp/ssmtp.conf
COPY revaliases /etc/ssmtp/revaliases
COPY munin_mail.conf /etc/munin/munin-conf.d/munin_mail.conf
# TODO mail config? wie senden?
# COPY munin_mail.conf /etc/munin/munin-conf.d/munin_mail.conf
# launcher
CMD ["/usr/local/bin/run"]
COPY run.sh /usr/local/bin/run
chmod +x /usr/local/bin/run
chmod +x /usr/local/bin/run
# cronjoib? timer?

View file

@ -1,7 +1,15 @@
includedir /etc/munin/munin-conf.d
[munin-container]
address localhost
use_node_name yes
# Munin hosts.
{% for host in munin_hosts %}
[{{ host.name }}]
{% if host.address is defined %}
address {{ host.address }}
{% endif %}
{% if host.extra is defined %}
{% for extra in host.extra %}
{{ extra }}
{% endfor %}
{% endif %}
# remote host
{% endfor %}

View file

@ -1,8 +0,0 @@
# sSMTP aliases
#
# Format: local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
root:mailfrom:mailserver:mailport
munin:mailfrom:mailserver:mailport

View file

@ -1,25 +0,0 @@
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=mailuser
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mailserver:mailport
AuthUser=mailuser
AuthPass=mailpassword
UseTLS=YES
UseSTARTTLS=YES
# Where will the mail seem to come from?
rewriteDomain=maildomain
# The full hostname
hostname=mailhost
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=NO