No Description

blat c8bcb50b62 Update Readme 1 year ago
group_vars 0ccecbe720 first commit 1 year ago
host_vars 0ccecbe720 first commit 1 year ago
playbooks 0ccecbe720 first commit 1 year ago
roles 0ccecbe720 first commit 1 year ago
vars 0ccecbe720 first commit 1 year ago
.gitignore 0ccecbe720 first commit 1 year ago
README.md c8bcb50b62 Update Readme 1 year ago
README_build.md 0ccecbe720 first commit 1 year ago
TODO.md 0ccecbe720 first commit 1 year ago
ansible.cfg 0ccecbe720 first commit 1 year ago
belvedere.yml 0ccecbe720 first commit 1 year ago
hosts 0ccecbe720 first commit 1 year ago
infra.test.yml 0ccecbe720 first commit 1 year ago
infra.yml 0ccecbe720 first commit 1 year ago
inventory.yml 0ccecbe720 first commit 1 year ago
main.yml 0ccecbe720 first commit 1 year ago
mesh_devices_template.yml 0ccecbe720 first commit 1 year ago

README.md

un ruolo ansible per aggiornare i belvederi e la macchina con gli strumenti

alcuni ruoli per installare i componenti necessari al monitoring dei belvederi

  • prometheus
  • blackbox_exporter
  • alertmanager

requirements

pip3 install ansible
pip3 install jinja2-ansible-filters

Aggiungi il percorso di dove ti ha installato ansible ed aggeggi vari nel tuo .bash_profile che hai in home:

#ansible ed ansible-galaxy
export PATH=$PATH:~/.local/bin

dai source ~/.bash_profile

Installa i componenti ansible-galaxy

ansible-galaxy collection install community.general
ansible-galaxy install cloudalchemy.prometheus
ansible-galaxy install cloudalchemy.blackbox-exporter
ansible-galaxy install cloudalchemy.alertmanager
ansible-galaxy install nginxinc.nginx
ansible-galaxy install nginxinc.nginx_config

run

ansible-playbook -i hosts -i inventory.yml main.yml

setup dei belvederi

ansible-playbook -i hosts -i inventory.yml infra.yml

build

In roles/stable/build un ruolo per buildare opernwrt e libremesh. Permette di aggiungere pacchetti e configurazioni attraverso i profili

i devices si possono aggiungere nel file di hosts mesh_devices.yml

 lime-macaddress:
    hostname:

nel ruolo è presente una fase iniziale, di preflight che genera un file di variabili per ciascun dispositivo, in host_vars che vengono poi usate per la generazione dei file di configurazione lime-macaddress