itnok.install_prometheus_node_exporter

install-prometheus-node-exporter

Status budowy Tag GitHub Rola Ansible

Zainstaluj Prometheus Node Exporter na wspieranym hoście.

Wykonywane kroki to:

  • Znalezienie najnowszej dostępnej wersji Prometheus Node Exporter (lub określonej)
  • Sprawdzenie najnowszej dostępnej wersji Prometheus Node Exporter
  • Pobranie listy sum kontrolnych SHA256 dla określonej wersji Prometheus Node Exporter
  • Pobranie określonej wersji Prometheus Node Exporter
  • Utworzenie dedykowanego użytkownika systemowego dla Prometheus Node Exporter (jeśli jeszcze nie istnieje)
  • Wydobycie 'node_exporter' z {{ install_prometheus_node_exporter.name }}
  • Ustawienie pliku usługi systemd dla Prometheus Node Exporter
  • Zmusić systemd do ponownego odczytania plików konfiguracyjnych dla usług
  • Włączyć i uruchomić ponownie usługę systemd dla Prometheus Node Exporter

:exclamation: Wymagania


Brak.

:abcd: Zmienne Roli


Zmienna Opis Wartość domyślna
install_prometheus Wersja Prometheus Node Exporter do zainstalowania latest

Aby zainstalować zależności, użyj:

    $ ansible-galaxy install <nazwa_zależności>

Instalację wymaganych ról Ansible można również zrealizować w prostszy sposób:

    $ ansible-galaxy install -r requirements.yml

:notebook: Przykładowy Playbook


Oto przykład, jak używać tej roli w swoich playbookach:

---
- hosts: serwery
  remote_user: ubuntu   # opcjonalnie (twój użytkownik zdalny)
  gather_facts: yes     # opcjonalnie
  become: yes

  roles:
    - { role: itnok.install_prometheus_node_exporter }

  vars:
    install_prometheus: "latest"

:guardsman: Licencja


MIT (czytaj więcej)

O projekcie

Install Prometheus Node Exporter on a supported host.

Zainstaluj
ansible-galaxy install itnok.install_prometheus_node_exporter
Licencja
mit
Pobrania
903
Właściciel