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 ブール値 startedまたはstopped

依存関係

なし

例のプレイブック

- 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