Skip to content

Commit

Permalink
make: activate venv directly in targets
Browse files Browse the repository at this point in the history
Signed-off-by: Zakhar Bessarab <[email protected]>
  • Loading branch information
zekker6 committed May 22, 2024
1 parent 88a3d94 commit d3e680b
Showing 1 changed file with 32 additions and 35 deletions.
67 changes: 32 additions & 35 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,71 +9,68 @@ lint:
yamllint roles playbooks; \
ansible-lint roles/ playbooks/

activate-venv:
. .venv/bin/activate

molecule-converge-single:
make activate-venv; \
. .venv/bin/activate; \
cd roles/single && molecule converge -s docker

molecule-converge-vmagent:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmagent && molecule converge -s docker

molecule-converge-vmalert:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmalert && molecule converge -s docker

molecule-converge-vminsert:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vminsert && molecule converge

molecule-converge-vmstorage:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmstorage && molecule converge

molecule-converge-vmselect:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmselect && molecule converge

molecule-converge-vmauth:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmauth && molecule converge

molecule-converge-single-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/single && molecule converge -s docker-enterprise

molecule-converge-vmagent-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmagent && molecule converge -s docker-enterprise

molecule-converge-vmalert-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmalert && molecule converge -s docker-enterprise

molecule-converge-vminsert-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vminsert && molecule converge -s enterprise

molecule-converge-vmstorage-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmstorage && molecule converge -s enterprise

molecule-converge-vmselect-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmselect && molecule converge -s enterprise

molecule-converge-vmauth-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmauth && molecule converge -s enterprise

molecule-converge-cluster-integration:
make activate-venv; \
. .venv/bin/activate; \
cd playbooks/ && molecule converge -s cluster

molecule-converge-cluster-integration-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd playbooks/ && molecule converge -s cluster-enterprise

molecule-converge: molecule-converge-single molecule-converge-vmagent molecule-converge-vmalert molecule-converge-vminsert molecule-converge-vmstorage molecule-converge-vmselect molecule-converge-vmauth
Expand All @@ -83,67 +80,67 @@ molecule-converge-enterprise: molecule-converge-single-enterprise molecule-conve
molecule-converge-integration: molecule-converge-cluster-integration molecule-converge-cluster-integration-enterprise

molecule-destroy-single:
make activate-venv; \
. .venv/bin/activate; \
cd roles/single && molecule destroy -s docker

molecule-destroy-vmagent:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmagent && molecule destroy -s docker

molecule-destroy-vmalert:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmalert && molecule destroy -s docker

molecule-destroy-vminsert:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vminsert && molecule destroy

molecule-destroy-vmstorage:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmstorage && molecule destroy

molecule-destroy-vmselect:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmselect && molecule destroy

molecule-destroy-vmauth:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmauth && molecule destroy

molecule-destroy-single-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/single && molecule destroy -s docker-enterprise

molecule-destroy-vmagent-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmagent && molecule destroy -s docker-enterprise

molecule-destroy-vmalert-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmalert && molecule destroy -s docker-enterprise

molecule-destroy-vminsert-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vminsert && molecule destroy -s enterprise

molecule-destroy-vmstorage-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmstorage && molecule destroy -s enterprise

molecule-destroy-vmselect-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmselect && molecule destroy -s enterprise

molecule-destroy-vmauth-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd roles/vmauth && molecule destroy -s enterprise

molecule-destroy-cluster-integration:
make activate-venv; \
. .venv/bin/activate; \
cd playbooks/ && molecule destroy -s cluster

molecule-destroy-cluster-integration-enterprise:
make activate-venv; \
. .venv/bin/activate; \
cd playbooks/ && molecule destroy -s cluster-enterprise

molecule-destroy: molecule-destroy-single molecule-destroy-vmagent molecule-destroy-vmalert molecule-destroy-vminsert molecule-destroy-vmstorage molecule-destroy-vmselect molecule-destroy-vmauth molecule-destroy-cluster-integration
Expand Down

0 comments on commit d3e680b

Please sign in to comment.