Fixes issue with python 3 on Ubuntu 18.04 tests.

master
Jeff Geerling 2020-02-20 18:18:00 -06:00
parent 38c07a16e5
commit e27338181c
3 changed files with 16 additions and 11 deletions

View File

@ -14,6 +14,12 @@ If you would like to view munin's graphs and output via HTTP, you will need an H
Available variables are listed below, along with default values (see `defaults/main.yml`): Available variables are listed below, along with default values (see `defaults/main.yml`):
munin_packages:
- python-passlib
- munin
Packages installed for Munin. If you are running Python 3, you should override this variable and set the first item to `python3-passlib`.
munin_dbdir: /var/lib/munin munin_dbdir: /var/lib/munin
munin_htmldir: /var/www/html/munin munin_htmldir: /var/www/html/munin
munin_logdir: /var/log/munin munin_logdir: /var/log/munin
@ -52,15 +58,13 @@ A listing of hosts to which munin will connect and monitor. Each item in the lis
See documentation for [Munin Node Definitions](http://munin.readthedocs.org/en/latest/reference/munin.conf.html#node-definitions) for more details as to what values to use here. See documentation for [Munin Node Definitions](http://munin.readthedocs.org/en/latest/reference/munin.conf.html#node-definitions) for more details as to what values to use here.
You can enable mail alerts by adding :
munin_alerts: munin_alerts:
- { - name: "JohnDoe",
name: "JohnDoe",
email: "johndoe@example.com", email: "johndoe@example.com",
subject: "Munin-notification for ${var:group} :: ${var:host}", subject: "Munin-notification for ${var:group} :: ${var:host}",
level: "warning critical" level: "warning critical"
}
You can configure email alerts using the `munin_alerts` variable.
## Dependencies ## Dependencies

View File

@ -31,16 +31,12 @@ munin_admin_password: munin
# Note that `name` can be hostname, or group + hostname, for example: # Note that `name` can be hostname, or group + hostname, for example:
# [example.com;foo.example.com] # [example.com;foo.example.com]
munin_hosts: munin_hosts:
- { - name: "localhost",
name: "localhost",
address: "127.0.0.1", address: "127.0.0.1",
extra: ["use_node_name yes"] extra: ["use_node_name yes"]
}
munin_alerts: [] munin_alerts: []
# - { # - name: "JohnDoe",
# name: "JohnDoe",
# email: "johndoe@example.com", # email: "johndoe@example.com",
# subject: "Munin-notification for ${var:group} :: ${var:host}", # subject: "Munin-notification for ${var:group} :: ${var:host}",
# level: "warning critical" # level: "warning critical"
# }

View File

@ -3,6 +3,11 @@
hosts: all hosts: all
become: true become: true
vars:
munin_packages:
- python3-passlib
- munin
pre_tasks: pre_tasks:
- name: Update apt cache. - name: Update apt cache.
apt: update_cache=true cache_valid_time=600 apt: update_cache=true cache_valid_time=600