bundles/influxdb: introduce
This commit is contained in:
parent
c97d9ab948
commit
dc0695e38f
2 changed files with 56 additions and 0 deletions
22
bundles/influxdb2/items.py
Normal file
22
bundles/influxdb2/items.py
Normal 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',
|
||||
},
|
||||
},
|
||||
}
|
34
bundles/influxdb2/metadata.py
Normal file
34
bundles/influxdb2/metadata.py
Normal 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',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue