bundles: add some telegraf plugins

This commit is contained in:
Franzi 2021-04-23 19:31:28 +02:00
parent 5e0541aef8
commit a37d31973a
Signed by: kunsi
GPG key ID: 12E3D2136B818350
12 changed files with 159 additions and 0 deletions

View file

@ -74,6 +74,28 @@ defaults = {
},
}
if node.has_bundle('telegraf'):
defaults['icinga2']['api_users']['telegraf'] = {
'password': repo.vault.password_for(f'{node.name} icinga2 api telegraf'),
'permissions': {
'objects/Services',
},
}
defaults['telegraf'] = {
'input_plugins': {
'builtin': {
'icinga2': [{
'server': 'https://127.0.0.1:5665',
'object_type': 'services',
'username': 'telegraf',
'password': repo.vault.password_for(f'{node.name} icinga2 api telegraf'),
'insecure_skip_verify': True,
}],
},
},
}
@metadata_reactor.provides(
'icinga2/icinga_users',
)