bundles: add some telegraf plugins
This commit is contained in:
parent
5e0541aef8
commit
a37d31973a
12 changed files with 159 additions and 0 deletions
|
@ -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',
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue