X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Finfluxdb.git;a=blobdiff_plain;f=README.rst;h=23b12f0004268a81814f44f55af05992278f6732;hp=c2f55879073bd6820b988a0206cd516cdd6d5885;hb=refs%2Fheads%2Fstacklight;hpb=d6fa6abc29b84593006f3b3a340ca74f854abcc7 diff --git a/README.rst b/README.rst index c2f5587..23b12f0 100644 --- a/README.rst +++ b/README.rst @@ -40,6 +40,97 @@ Single-node influxdb, SSL for http frontend: key_file: /etc/influxdb/ssl/key.pem cert_file: /etc/influxdb/ssl/cert.pem +Single-node influxdb where you specify paths for data and metastore directories. You +need to ensure that directories exist: + +.. code-block:: yaml + + influxdb: + server: + enabled: true + data: + dir: '/opt/influxdb/data' + wal_dir: '/opt/influxdb/wal' + meta: + dir: '/opt/influxdb/meta' + +Single-node influxdb with an admin user: + +.. code-block:: yaml + + influxdb: + server: + enabled: true + http: + enabled: true + bind: + address: 0.0.0.0 + port: 8086 + admin: + enabled: true + bind: + address: 0.0.0.0 + port: 8083 + user: + enabled: true + name: root + password: secret + +Single-node influxdb with new users: + +.. code-block:: yaml + + influxdb: + server: + user: + user1: + enabled: true + admin: true + name: username1 + password: keepsecret1 + user2: + enabled: true + admin: false + name: username2 + password: keepsecret2 + +Single-node influxdb with new databases: + +.. code-block:: yaml + + influxdb: + server: + database: + mydb1: + enabled: true + name: mydb1 + mydb2: + enabled: true + name: mydb2 + +Here is how to manage grants on database: + +.. code-block:: yaml + + influxdb: + server: + grant: + username1_mydb1: + enabled: true + user: username1 + database: mydb1 + privilege: all + username2_mydb1: + enabled: true + user: username2 + database: mydb1 + privilege: read + username2_mydb2: + enabled: true + user: username2 + database: mydb2 + privilege: write + InfluxDB relay: .. code-block:: yaml @@ -64,6 +155,28 @@ InfluxDB relay: idb02: location: idb02.local:9096 +InfluxDB cluster: + +.. code-block:: yaml + + influxdb: + server: + enabled: true + meta: + bind: + address: 0.0.0.0 + port: 8088 + http_address: 0.0.0.0 + http_port: 8091 + cluster: + members: + - host: idb01.local + port: 8091 + - host: idb02.local + port: 8091 + - host: idb03.local + port: 8091 + Deploy influxdb apt repository (using linux formula): .. code-block:: yaml @@ -72,11 +185,11 @@ Deploy influxdb apt repository (using linux formula): system: os: ubuntu dist: xenial - repo: - influxdb: - enabled: true - source: 'deb https://repos.influxdata.com/${linux:system:os} ${linux:system:dist} stable' - key_url: 'https://repos.influxdata.com/influxdb.key' + repo: + influxdb: + enabled: true + source: 'deb https://repos.influxdata.com/${linux:system:os} ${linux:system:dist} stable' + key_url: 'https://repos.influxdata.com/influxdb.key' Read more =========