Add client role
The client role is responsible for provisioning the users, databases
and privileges. It is required when running InfluxDB in a container
because the deployment of InfluxDB and the provisioning phase are
decoupled. Non-containerized deployments are left unchanged with the
provisioning managed by the server state.
Change-Id: I7c9a05f2109f76aadf84953374c740a865d59106
diff --git a/tests/pillar/client.sls b/tests/pillar/client.sls
new file mode 100644
index 0000000..5d1f0d2
--- /dev/null
+++ b/tests/pillar/client.sls
@@ -0,0 +1,41 @@
+influxdb:
+ client:
+ enabled: true
+ server:
+ protocol: http
+ host: 127.0.0.1
+ port: 8086
+ user: admin
+ password: foobar
+ user:
+ user1:
+ enabled: true
+ admin: true
+ name: username1
+ password: secret
+ database:
+ mydb1:
+ enabled: true
+ name: mydb1
+ retention_policy:
+ - name: rp_db1
+ duration: 30d
+ replication: 1
+ is_default: true
+ - name: rp_db2
+ duration: 365d
+ replication: 1
+ mydb2:
+ enabled: true
+ name: mydb2
+ grant:
+ username1_mydb1:
+ enabled: true
+ user: username1
+ database: mydb1
+ privilege: all
+ username1_mydb2:
+ enabled: true
+ user: username1
+ database: mydb2
+ privilege: read