bundles/mosquitto: only install telegraf plugin if we have telegraf
This commit is contained in:
parent
b1790ece35
commit
7649396b8a
2 changed files with 11 additions and 9 deletions
|
@ -5,7 +5,6 @@ defaults = {
|
|||
'packages': {
|
||||
'mosquitto': {},
|
||||
'mosquitto-clients': {},
|
||||
'python3-paho-mqtt': {}, # for telegraf plugin
|
||||
},
|
||||
},
|
||||
'icinga2_api': {
|
||||
|
@ -24,6 +23,9 @@ defaults = {
|
|||
},
|
||||
}
|
||||
|
||||
if node.has_bundle('telegraf'):
|
||||
defaults['apt']['packages']['python3-paho-mqtt'] = {}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'firewall/port_rules',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue