- Setup
venv:
python3 -m venv ./venv- Activate
venv:
. venv/bin/activate- Install Python packages:
pip install -r requirements.txt-
Create
.vaultdirectory and put the ansible vault key into.vault/devopsfile -
Decrypt
files/someadmin_id_rsaand 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 -DAt this moment only alertmanager, grafana, loki and prometheus roles are covered by molecule
- Navigate to a role directory
- Run
molecule createfor creating infrastructure and deploying dependencies there - Install a main service executing
molecule converge - Execute
molecule verifyfor running tests - Destroy all resources which were provisioned by molecule by executing
molecule destroy