postgresql: fix nested loop for Munin plugins
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e6ea44ff29
commit
bcaacdf57f
|
@ -19,6 +19,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
### Fixed
|
||||
|
||||
* Enforce String notation for mode
|
||||
* postgresql: fix nested loop for Munin plugins
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -30,7 +30,15 @@
|
|||
dest: '/etc/munin/plugins/{{item[0]}}{{item[1]}}'
|
||||
loop: "{{ _plugins | product(_databases) | list }}"
|
||||
vars:
|
||||
_plugins: ['postgres_cache_', 'postgres_connections_', 'postgres_locks_', 'postgres_querylength_', 'postgres_scans_', 'postgres_size_', 'postgres_transactions_', 'postgres_tuples_']
|
||||
_databases: postgresql_databases
|
||||
_plugins:
|
||||
- 'postgres_cache_'
|
||||
- 'postgres_connections_'
|
||||
- 'postgres_locks_'
|
||||
- 'postgres_querylength_'
|
||||
- 'postgres_scans_'
|
||||
- 'postgres_size_'
|
||||
- 'postgres_transactions_'
|
||||
- 'postgres_tuples_'
|
||||
_databases: "{{ postgresql_databases }}"
|
||||
notify: restart munin-node
|
||||
when: etc_munin_plugins.stat.exists and usr_share_munin_plugins.stat.exists
|
||||
|
|
Loading…
Reference in a new issue