- Setup
venv
:
python3 -m venv ./venv
- Activate
venv
:
. venv/bin/activate
- Install Python packages:
pip install -r requirements.txt
-
Create
.vault
directory and put the ansible vault key into.vault/devops
file -
Decrypt
files/someadmin_id_rsa
and put this ssh private key outside the git repo, then encrypt again usingansible-vaul
NOTE: It's mandatory to use >= Python3.9 <= Python3.11 for working with ansible 5.10.0
- Execute the following command for installing
monitoring-stack
ansible-playbook -i inventory playbooks/monitoring_stack.yaml -D
At this moment only alertmanager
, grafana
, loki
and prometheus
roles are covered by molecule
- Navigate to a role directory
- Run
molecule create
for creating infrastructure and deploying dependencies there - Install a main service executing
molecule converge
- Execute
molecule verify
for running tests - Destroy all resources which were provisioned by molecule by executing
molecule destroy