bundles/influxdb: introduce

This commit is contained in:
Franzi 2021-04-24 10:17:56 +02:00
parent c97d9ab948
commit dc0695e38f
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,22 @@
repo.libs.tools.require_bundle(node, 'zfs')
directories = {
'/var/lib/influxdb': {
'owner': 'influxdb',
'group': 'influxdb',
'mode': '0750',
'needs': {
'pkg_apt:influxdb2',
},
},
}
svc_systemd = {
'influxdb': {
'needs': {
'directory:/var/lib/influxdb',
'pkg_apt:influxdb2',
},
},
}

View file

@ -0,0 +1,34 @@
defaults = {
'apt': {
'packages': {
'influxdb2': {
'needs': {
'zfs_dataset:tank/influxdb2',
},
},
},
'repos': {
'influxdb': {
'items': {
'deb https://repos.influxdata.com/{os} {os_release} stable',
},
},
},
},
'icinga2_api': {
'telegraf': {
'services': {
'INFLUXDB PROCESS': {
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C telegraf -c 1:',
},
},
},
},
'zfs': {
'datasets': {
'tank/influxdb2': {
'mountpoint': '/var/lib/influxdb',
},
},
},
}