buluma.influxdb
Ansible-Rolle influxdb
Installiert und konfiguriert InfluxDB auf Rhel, Debian und Ubuntu.
GitHub | Version | Probleme | Pull-Requests | Downloads |
---|---|---|---|---|
Beispiel Playbook
Dieses Beispiel stammt aus molecule/default/converge.yml
und wird bei jedem Push, Pull-Request und Release getestet.
---
- name: Konvergieren
hosts: alle
vars:
influxdb_admin_username: admin
influxdb_admin_password: admin123
influxdb_databases:
- name: telegraf-metrics
state: present
influxdb_users:
- name: telegraf
password: telegraf
grants:
- database: telegraf-metrics
privilege: "WRITE"
roles:
- role: buluma.influxdb
Die Maschine muss vorbereitet werden. In CI erfolgt dies mit molecule/default/prepare.yml
:
---
- name: Container vorbereiten
hosts: alle
gather_facts: true
roles:
- role: buluma.bootstrap
- role: buluma.epel
# - role: buluma.buildtools
# - role: buluma.ca_certificates
tasks:
- name: python-pip auf RHEL7 installieren
yum:
name: python-pip
state: present
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "7"
- name: python3-pip auf RHEL8 installieren
yum:
name: python3
state: present
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "8"
- name: pip auf Ubuntu installieren
apt:
name: "{{ item }}"
update_cache: yes
state: present
loop:
- python3-pip
- python3-setuptools
- gnupg
when: ( ansible_os_family == "Debian" and ansible_distribution == "Ubuntu" )
- name: pip auf Debian installieren
apt:
name: "{{ item }}"
state: present
update_cache: true
loop:
- gnupg
- python-setuptools
- python-pip
when: ( ansible_os_family == "Debian" and ( ansible_distribution_major_version == "10" or ansible_distribution_major_version == "9" ))
Siehe auch eine vollständige Erklärung und Beispiel zur Verwendung dieser Rollen.
Rollenvariablen
Die Standardwerte für die Variablen sind in defaults/main.yml
festgelegt:
---
influxdb_manage_repository: ja
influxdb_manage_package: ja
influxdb_config_dir: /etc/influxdb
influxdb_config_global:
reporting-disabled: false
bind-address: 127.0.0.1:8088
influxdb_config_graphite:
- enabled: false
tags:
- region=us
- zone=test
influxdb_config_collectd:
- enabled: false
influxdb_config_udp:
- enabled: false
influxdb_config_meta:
dir: /var/lib/influxdb/meta
retention-autocreate: true
logging-enabled: true
influxdb_config_http:
enabled: true
https-enabled: false
bind-address: 127.0.0.1:8086
auth-enabled: true
ping-auth-enabled: true
influxdb_config_data:
dir: /var/lib/influxdb/data
wal-dir: /var/lib/influxdb/wal
series-id-set-cache-size: 100
influxdb_admin_username: admin
influxdb_admin_password: admin
Anforderungen
- pip-Pakete, die in requirements.txt aufgeführt sind.
Status der verwendeten Rollen
Die folgenden Rollen werden verwendet, um ein System vorzubereiten. Sie können Ihr System auch anders vorbereiten.
Anforderung | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.epel | ||
buluma.buildtools | ||
buluma.ca_certificates |
Kontext
Diese Rolle ist Teil vieler kompatibler Rollen. Schauen Sie sich die Dokumentation dieser Rollen für weitere Informationen an.
Hier ist eine Übersicht über verwandte Rollen:
Kompatibilität
Diese Rolle wurde auf diesen Container-Images getestet:
Container | Tags |
---|---|
EL | alle |
Ubuntu | alle |
Debian | alle |
Die Mindestversion von Ansible, die erforderlich ist, ist 2.10. Es wurde getestet auf:
- Die vorherige Version.
- Die aktuelle Version.
- Die Entwicklungs-Version.
Wenn Sie Probleme finden, melden Sie diese bitte auf GitHub.
Änderungsprotokoll
Lizenz
Autoreninformationen
Install and configures InfluDB on Rhel, Debian and Ubuntu
ansible-galaxy install buluma.influxdb