boutetnico.influxdb

测试 Ansible Galaxy

ansible-role-influxdb

此角色安装并配置 InfluxDB

注意事项

需要 Ansible 2.10 或更高版本。

支持的平台

角色变量

变量 必须 默认值 选择项 说明
influxdb_dependencies [apt-transport-https,curl,gnupg] 列表
influxdb_package_state present 字符串 使用 latest 进行升级。
influxdb_host http://localhost:8086 字符串
influxdb_config_path /etc/influxdb 字符串
influxdb_bolt_path /var/lib/influxdb/influxd.bolt 字符串
influxdb_engine_path /var/lib/influxdb/engine 字符串
influxdb_config {} 字典 主要配置对象。
influxdb_primary_org example-org 字符串 主要组织名称。
influxdb_primary_bucket example-bucket 字符串 主要桶名称。
influxdb_primary_username example-user 字符串 主要用户名。
influxdb_primary_password ExAmPl3PA55W0rD 字符串 主要用户的密码。
influxdb_admin_token EXAMPLE-TOKEN 字符串 管理用户的令牌。
influxdb_orgs [] 列表 要创建的其他组织。
influxdb_users [] 列表 要创建的其他用户。
influxdb_buckets [] 列表 要创建的其他桶。
influxdb_service_enabled true 布尔值 启动时自动运行 InfluxDB。
influxdb_service_state started 布尔值 使用 startedstopped

依赖项

示例剧本

- hosts: all
  roles:
    - role: ansible-role-influxdb

      influxdb_orgs:
        - name: main-org
          description: 主要组织
        - name: guest-org

      influxdb_users:
        - name: admin01
          org: main-org
          password: secretPassword
        - name: guest01
          org: guest-org
          password: secretPassword

      influxdb_buckets:
        - name: bucket01
          description: 第一个桶
          org: main-org
          retention: 1d
        - name: bucket02
          org: main-org

测试

molecule test --all

许可证

MIT

作者信息

@boutetnico

关于项目

Install and configure InfluxDB.

安装
ansible-galaxy install boutetnico.influxdb
许可证
mit
下载
5.2k
拥有者
System Engineer