No description
Find a file
Adrien Waksberg 7df2a42795
All checks were successful
/ lint (push) Successful in 8s
/ molecule (push) Successful in 1m7s
test: add forgejo workflow
2024-05-09 11:46:26 +02:00
.forgejo/workflows test: add forgejo workflow 2024-05-09 11:46:26 +02:00
defaults feat: upgrade to influxdb 2 2024-03-13 21:51:37 +01:00
library fix: bug with description 2024-03-13 21:51:38 +01:00
meta feat: upgrade to influxdb 2 2024-03-13 21:51:37 +01:00
molecule/default test: use personal docker registry 2024-05-08 10:24:31 +02:00
tasks feat: upgrade to influxdb 2 2024-03-13 21:51:37 +01:00
templates test: use ansible 2.9 and python3 2020-02-12 22:13:42 +01:00
.gitignore test: replace kitchen to molecule 2021-08-18 14:38:32 +02:00
.gitlab-ci.yml test: add gitlab-ci 2024-03-13 21:51:36 +01:00
.yamllint test: add forgejo workflow 2024-05-09 11:46:26 +02:00
CHANGELOG.md test: use personal docker registry 2024-05-08 10:24:31 +02:00
README.md test: add forgejo workflow 2024-05-09 11:46:26 +02:00

Ansible role: Influxdb

Version License Build

Install and configure InfluxDB 2

Requirements

  • Ansible >= 2.10
  • Debian
    • Bookworm

Role variables

  • influxdb_init_username - user created during the influxdb setup

  • influxdb_init_org - organization created during the influxdb setup

  • influxdb_init_bucket - bucket created during the influxdb setup

  • influxdb_api_token - token to manage influxdb

  • influxdb_orgs - hash with organizations

    myorg:
      description: it's a test
      state: present
    
  • influxdb_buckets - hash with the buckets

    mybucket:
      description: KFC
      retention: 3600
      org: neworg
      state: present
    
  • influxdb_users - hash with the users

    myuser:
      status: active
      state: present
    
  • influxdb_authorizations - array with the authorizations

    - user: myuser
      description: write bucket
      org: neworg
      status: active
      state: present
      permissions:
        - action: write
          resource:
            type: buckets
            org: myorg
            name: mybucket
        - action: read
          resource:
            type: buckets
    

How to use

- hosts: server
  roles:
    - influxdb

Development

Test with molecule and docker

  • install docker
  • install python3 and python3-pip
  • install molecule and dependencies pip3 install molecule molecule-plugins[docker] ansible-lint pytest-testinfra yamllint
  • run molecule test

License

Copyright (c) 2019 Adrien Waksberg

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.