blat c8bcb50b62 Update Readme | 1 year ago | |
---|---|---|
group_vars | 1 year ago | |
host_vars | 1 year ago | |
playbooks | 1 year ago | |
roles | 1 year ago | |
vars | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
README_build.md | 1 year ago | |
TODO.md | 1 year ago | |
ansible.cfg | 1 year ago | |
belvedere.yml | 1 year ago | |
hosts | 1 year ago | |
infra.test.yml | 1 year ago | |
infra.yml | 1 year ago | |
inventory.yml | 1 year ago | |
main.yml | 1 year ago | |
mesh_devices_template.yml | 1 year ago |
un ruolo ansible per aggiornare i belvederi e la macchina con gli strumenti
alcuni ruoli per installare i componenti necessari al monitoring dei belvederi
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
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