Follow FHS for influxdb

This commit is contained in:
Alex D. 2020-12-29 18:53:56 +00:00
parent 9b9d8f4b7f
commit e6c6f3a6cf
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
6 changed files with 15 additions and 15 deletions

View File

@ -1,7 +1,7 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=redxen-config-influxdb
pkgver=2020.12.7
pkgver=2020.12.29
pkgrel=0
pkgdesc="InfluxDB backend configuration"
url="https://git.redxen.eu/RedXen"
@ -14,8 +14,8 @@ source="
options="!check"
package() {
install -dm700 "$pkgdir"/databases/influxdb
install -dm700 "$pkgdir"/var/lib/influxdb
install -Dm644 influxdb.conf "$pkgdir"/etc/influxdb/redxen.conf
}
sha512sums="3b215a73e8857ab28ab99da9f5ad65cccabb1ffc41569273bccc83197545c498f969c5f78db786916b6132c7c98f6c2e70075b27420adf84ffce182e3f122993 influxdb.conf"
sha512sums="e251c8e25fb0d4a258f17425d277553d65a0b4b078c60ceec973bb421fdda42130d0e9cb38a70a85f5258407b02219ce9f79e551908a9f8e593a00852f5f81b4 influxdb.conf"

View File

@ -1,7 +1,7 @@
reporting-disabled = false
[meta]
dir = "/databases/influxdb"
dir = "/var/lib/influxdb"
retention-autocreate = false
logging-enabled = false
pprof-enabled = false
@ -9,8 +9,8 @@ reporting-disabled = false
[data]
enabled = true
dir = "/databases/influxdb/data"
wal-dir = "/databases/influxdb/wal"
dir = "/var/lib/influxdb/data"
wal-dir = "/var/lib/influxdb/wal"
index-version = "tsi1"
cache-max-memory-size = "10m"
cache-snapshot-memory-size = "1m"

View File

@ -1,7 +1,7 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=redxen-cron-influxdb
pkgver=2020.12.27
pkgver=2020.12.29
pkgrel=0
pkgdesc="InfluxDB backup maintenance scripts"
url="https://git.redxen.eu/RedXen"
@ -15,8 +15,8 @@ source="
options="!check"
package() {
install -dm700 "$pkgdir"/databases/snapshots/influxdb
install -dm700 "$pkgdir"/var/lib/influxdb/snapshots
install -Dm544 cron-daily "$pkgdir"/etc/periodic/daily/snapshot-influxdb
}
sha512sums="105495fa1a66069f1455362dc5832d624d0ee04920cb59ac680301eb379cf2670a873776437e8172cc1d4598d4ce52dfed38764979c3afbb2a79bbe89b11c59e cron-daily"
sha512sums="11069cdc37181ec5e131164fad9a6215278fd50954ec4dace0eac059a5b665fc514e5285823191c27a76ce2a3215dbc10158c8e5dfcd01b6a3b04b0d5b3f1907 cron-daily"

View File

@ -1,3 +1,3 @@
#!/bin/sh
/sbin/btrfs subvolume delete /databases/snapshots/influxdb/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /databases/influxdb /databases/snapshots/influxdb/`date +"%u"`
/sbin/btrfs subvolume delete /var/lib/influxdb/snapshots/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/influxdb /var/lib/influxdb/snapshots/`date +"%u"`

View File

@ -1,8 +1,8 @@
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=redxen-openrc-influxdb
pkgver=2020.12.7
pkgrel=1
pkgver=2020.12.29
pkgrel=0
pkgdesc="InfluxDB service files"
url="https://git.redxen.eu/RedXen"
arch="noarch"
@ -21,4 +21,4 @@ package() {
}
sha512sums="bc850c5a53510801435ee700a80d204a084d773b94bbb6f3aa39744d3a88f3b189596dc8d4c618c4d9c97cb8d26ec50608bfaa6a78550c5b86c146c96e744460 runfile
21984d521d7ff2ae64094a75e556812d255d07892b3a1df2f04982036d74f11a8d7c7d1f557b921d3c427ab1b51956b7f081fb5fc1404246700d012cab904e35 conffile"
fff28c21ece16bce375ffe7790655de498f067e71ffdbc880e6b3b0adc28707cac167a5a53dd4aab73e5a5664300d165a6e9d2718a4b49482bbfc52e42d67594 conffile"

View File

@ -1,2 +1,2 @@
data_path=/databases/influxdb
data_path=/var/lib/influxdb
INFLUXDB_OPTS="-config /etc/influxdb/redxen.conf"