Skip to content

Commit

Permalink
Make influx init mode configurable (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikriemer committed Jan 29, 2023
1 parent 72f11f1 commit 1696d47
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions installer/cli/.env
Expand Up @@ -35,3 +35,8 @@ COMPOSE_PROJECT_NAME=streampipes
#
# default: activemq
#SP_MQTT_HOST=mosquitto


# For database migration in v0.91.0 - set init mode to 'upgrade' to migrate an existing installation
SP_INFLUX_INIT_MODE=setup
#SP_INFLUX_INIT_MODE=upgrade
Expand Up @@ -26,7 +26,7 @@ services:
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=sp-admin
- DOCKER_INFLUXDB_INIT_ORG=sp
- DOCKER_INFLUXDB_INIT_BUCKET=sp
- DOCKER_INFLUXDB_INIT_MODE=upgrade
- DOCKER_INFLUXDB_INIT_MODE=${SP_INFLUX_INIT_MODE}
volumes:
- influxdb:/var/lib/influxdb
- influxdb2:/var/lib/influxdb2
Expand Down
4 changes: 4 additions & 0 deletions installer/compose/.env
Expand Up @@ -18,3 +18,7 @@ SP_DOCKER_REGISTRY=apachestreampipes
SP_SUBNET=172.31.0.0/16
SP_CONSUL_CONTAINER_IP=172.31.0.9
COMPOSE_PROJECT_NAME=streampipes

# For database migration in v0.91.0 - set init mode to 'upgrade' to migrate an existing installation
SP_INFLUX_INIT_MODE=setup
#SP_INFLUX_INIT_MODE=upgrade
2 changes: 1 addition & 1 deletion installer/compose/docker-compose.full.yml
Expand Up @@ -161,7 +161,7 @@ services:
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=sp-admin
- DOCKER_INFLUXDB_INIT_ORG=sp
- DOCKER_INFLUXDB_INIT_BUCKET=sp
- DOCKER_INFLUXDB_INIT_MODE=upgrade
- DOCKER_INFLUXDB_INIT_MODE=${SP_INFLUX_INIT_MODE}
volumes:
- influxdb:/var/lib/influxdb
- influxdb2:/var/lib/influxdb2
Expand Down
2 changes: 1 addition & 1 deletion installer/compose/docker-compose.nats.yml
Expand Up @@ -102,7 +102,7 @@ services:
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=sp-admin
- DOCKER_INFLUXDB_INIT_ORG=sp
- DOCKER_INFLUXDB_INIT_BUCKET=sp
- DOCKER_INFLUXDB_INIT_MODE=upgrade
- DOCKER_INFLUXDB_INIT_MODE=${SP_INFLUX_INIT_MODE}
volumes:
- influxdb:/var/lib/influxdb
- influxdb2:/var/lib/influxdb2
Expand Down
2 changes: 1 addition & 1 deletion installer/compose/docker-compose.yml
Expand Up @@ -133,7 +133,7 @@ services:
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=sp-admin
- DOCKER_INFLUXDB_INIT_ORG=sp
- DOCKER_INFLUXDB_INIT_BUCKET=sp
- DOCKER_INFLUXDB_INIT_MODE=upgrade
- DOCKER_INFLUXDB_INIT_MODE=${SP_INFLUX_INIT_MODE}
volumes:
- influxdb:/var/lib/influxdb
- influxdb2:/var/lib/influxdb2
Expand Down
4 changes: 3 additions & 1 deletion installer/k8s/values.yaml
Expand Up @@ -32,13 +32,15 @@ external:
zookeeperVersion: 3.4.13
influxdbVersion: 2.6

# For database migration in v0.91.0 - set init mode to 'upgrade' to migrate an existing installation

influxdb:
username: "admin"
password: "sp-admin"
adminToken: "sp-admin"
initOrg: "sp"
initBucket: "sp"
initMode: "upgrade"
initMode: "setup"



Expand Down

0 comments on commit 1696d47

Please sign in to comment.