influx on ssd
This commit is contained in:
parent
4530a34175
commit
a3c7acc399
3 changed files with 21 additions and 13 deletions
|
@ -5,7 +5,7 @@ directories['/var/lib/influxdb'] = {
|
|||
'owner': 'influxdb',
|
||||
'group': 'influxdb',
|
||||
'needs': [
|
||||
'zfs_dataset:tank/influxdb',
|
||||
f"zfs_dataset:{node.metadata.get('zfs/storage_classes/ssd')}/influxdb",
|
||||
],
|
||||
}
|
||||
|
||||
|
|
|
@ -22,15 +22,6 @@ defaults = {
|
|||
'http-bind-address': ':8200',
|
||||
},
|
||||
},
|
||||
'zfs': {
|
||||
'datasets': {
|
||||
'tank/influxdb': {
|
||||
'mountpoint': '/var/lib/influxdb',
|
||||
'recordsize': '8192',
|
||||
'atime': 'off',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@metadata_reactor.provides(
|
||||
|
@ -46,6 +37,26 @@ def admin_password(metadata):
|
|||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'zfs/datasets',
|
||||
)
|
||||
def zfs(metadata):
|
||||
if not node.has_bundle('zfs'):
|
||||
return {}
|
||||
|
||||
return {
|
||||
'zfs': {
|
||||
'datasets': {
|
||||
f"{metadata.get('zfs/storage_classes/ssd')}/influxdb": {
|
||||
'mountpoint': '/var/lib/influxdb',
|
||||
'recordsize': '8192',
|
||||
'atime': 'off',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'dns',
|
||||
)
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
from importlib.metadata import metadata
|
||||
|
||||
|
||||
root_password = repo.vault.password_for(f'{node.name} postgresql root')
|
||||
|
||||
defaults = {
|
||||
|
|
Loading…
Reference in a new issue