Jenkins related plugins
https://git.unixadm.org/phil/ansible-collection-influxdb
This module adds or removes an influxdb read/write bucket authorisation
Parameter | Choices/Defaults | Description |
---|---|---|
api_token (str) required |
influxdb manager token | |
api_url (str) |
http://localhost:8086 | influxdb api url |
bucket (str) required |
name of the bucket to grant/revoke rw access to/from | |
organisation (str) required |
the organisation of the bucket | |
state (str) |
present absent |
add (present) or remove (absent) authorisation token |
user (str) required |
username |
- name: "create influxdb bucket auth"
influxdb_bucket:
api_url: https://server.example:8086
api_token: yourtokenhere
user: myeviluser
bucket: mybucket
organisation: myorg
- name: "remove influxdb bucket auth"
influxdb_bucket:
api_token: yourtokenhere
user: myeviluser
bucket: mybucket
organisation: myorg
state: absent
Key | Returned | Description |
---|---|---|
_raw (str) |
Success | auth dict |
This module adds, updates or deletes an influxdb buckets
Parameter | Choices/Defaults | Description |
---|---|---|
api_token (str) required |
influxdb manager token | |
api_url (str) |
http://localhost:8086 | influxdb api url |
name (str) required |
name of the bucket | |
organisation (str) required |
the organisation of the bucket | |
retention (str) |
0 | Duration in seconds bucket will retain data, or 0 for infinite |
shardgroupduration (str) |
604800 | Shard group duration used internally by the storage engine |
state (str) |
present absent |
add/update (present) or remove (absent) organisation |
- name: "create influxdb bucket"
influxdb_bucket:
api_url: https://server.example:8086
api_token: yourtokenhere
name: mybucket
organisation: myorg
- name: "remove influxdb bucket"
influxdb_bucket:
api_token: yourtokenhere
name: mybucket
organisation: myorg
state: absent
Key | Returned | Description |
---|---|---|
_raw (str) |
Success | bucket dict |
This module adds, updates or deletes an influxdb organisation
Parameter | Choices/Defaults | Description |
---|---|---|
api_token (str) required |
influxdb manager token | |
api_url (str) |
http://localhost:8086 | influxdb api url |
description (str) |
description of the given organisation | |
name (str) required |
name of the organisation | |
state (str) |
present absent |
add/update (present) or remove (absent) organisation |
- name: "create influxdb organisation"
influxdb_org:
api_url: https://server.example:8086
api_token: yourtokenhere
name: myorganisation
description: some text here
- name: "remove influxdb organisation"
influxdb_org:
api_token: yourtokenhere
name: myorganisation
state: absent
Key | Returned | Description |
---|---|---|
_raw (str) |
Success | organisation dict |
This module adds or deletes an influxdb user
Parameter | Choices/Defaults | Description |
---|---|---|
api_token (str) required |
influxdb manager token | |
api_url (str) |
http://localhost:8086 | influxdb api url |
name (str) required |
name of the user | |
state (str) |
present absent |
add (present) or remove (absent) user |
- name: "create influxdb user"
influxdb_user:
api_url: https://server.example:8086
api_token: yourtokenhere
organisations:
- myorg
- anotherorg
name: myuser
- name: "remove influxdb use"
influxdb_user:
api_token: yourtokenhere
name: myuser
state: absent
Key | Returned | Description |
---|---|---|
_raw (str) |
Success | user dict |
GPL-2.0-only