Skip to content

Commit

Permalink
Update molecule.mak
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Aug 18, 2024
1 parent 806fa7d commit 79ead9f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .config/make/molecule.mak
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,52 @@ ACTIVATE_VENV = . .venv/bin/activate

.PHONY: molecule-test
molecule-test: ## Run test sequence for default scenario
$(ACTIVATE_VENV) && molecule test
$(ACTIVATE_VENV) && cd automation && molecule test

.PHONY: molecule-destroy
molecule-destroy: ## Run destroy sequence for default scenario
$(ACTIVATE_VENV) && molecule destroy
$(ACTIVATE_VENV) && cd automation && molecule destroy

.PHONY: molecule-converge
molecule-converge: ## Run converge sequence for default scenario
$(ACTIVATE_VENV) && molecule converge
$(ACTIVATE_VENV) && cd automation && molecule converge

.PHONY: molecule-reconverge
molecule-reconverge: ## Run destroy and converge sequence for default scenario
$(ACTIVATE_VENV) && molecule destroy && molecule converge
$(ACTIVATE_VENV) && cd automation && molecule destroy && && molecule converge

.PHONY: molecule-test-all
molecule-test-all: ## Run test sequence for all scenarios
$(ACTIVATE_VENV) && molecule test --all
$(ACTIVATE_VENV) && cd automation && molecule test --all

.PHONY: molecule-destroy-all
molecule-destroy-all: ## Run destroy sequence for all scenarios
$(ACTIVATE_VENV) && molecule destroy --all
$(ACTIVATE_VENV) && cd automation && molecule destroy --all

.PHONY: molecule-test-scenario
molecule-test-scenario: ## Run molecule test with specific scenario (example: make molecule-test-scenario MOLECULE_SCENARIO="scenario_name")
$(ACTIVATE_VENV) && molecule test --scenario-name $(MOLECULE_SCENARIO)
$(ACTIVATE_VENV) && cd automation && molecule test --scenario-name $(MOLECULE_SCENARIO)

.PHONY: molecule-destroy-scenario
molecule-destroy-scenario: ## Run molecule destroy with specific scenario (example: make molecule-destroy-scenario MOLECULE_SCENARIO="scenario_name")
$(ACTIVATE_VENV) && molecule destroy --scenario-name $(MOLECULE_SCENARIO)
$(ACTIVATE_VENV) && cd automation && molecule destroy --scenario-name $(MOLECULE_SCENARIO)

.PHONY: molecule-converge-scenario
molecule-converge-scenario: ## Run molecule converge with specific scenario (example: make molecule-converge-scenario MOLECULE_SCENARIO="scenario_name")
$(ACTIVATE_VENV) && molecule converge --scenario-name $(MOLECULE_SCENARIO)
$(ACTIVATE_VENV) && cd automation && molecule converge --scenario-name $(MOLECULE_SCENARIO)

.PHONY: molecule-dependency
molecule-dependency: ## Run dependency sequence
$(ACTIVATE_VENV) && molecule dependency
$(ACTIVATE_VENV) && cd automation && molecule dependency

.PHONY: molecule-verify
molecule-verify: ## Run verify sequence
$(ACTIVATE_VENV) && molecule verify
$(ACTIVATE_VENV) && cd automation && molecule verify

.PHONY: molecule-login
molecule-login: ## Log in to one instance using custom host IP (example: make molecule-login MOLECULE_HOST="10.172.0.20")
$(ACTIVATE_VENV) && molecule login --host $(MOLECULE_HOST)
$(ACTIVATE_VENV) && cd automation && molecule login --host $(MOLECULE_HOST)

.PHONY: molecule-login-scenario
molecule-login-scenario: ## Log in to one instance using custom host IP and scenario name (example: make molecule-login-scenario MOLECULE_HOST="10.172.1.20" MOLECULE_SCENARIO="scenario_name")
$(ACTIVATE_VENV) && molecule login --host $(MOLECULE_HOST) --scenario-name $(MOLECULE_SCENARIO)
$(ACTIVATE_VENV) && cd automation && molecule login --host $(MOLECULE_HOST) --scenario-name $(MOLECULE_SCENARIO)

0 comments on commit 79ead9f

Please sign in to comment.