-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.PHONY: molecule_test_% | ||
molecule_test_%: | ||
cd ansible/; molecule test -s $* | ||
|
||
.PHONY: molecule_dev_% | ||
molecule_dev_%: | ||
cd ansible/; molecule test -s $* --destroy=never | ||
|
||
.PHONY: molecule_converge_% | ||
molecule_converge_%: | ||
cd ansible/; molecule converge -s $* | ||
|
||
.PHONY: molecule_verify_% | ||
molecule_verify_%: | ||
cd ansible/; molecule verify -s $* | ||
|
||
.PHONY: molecule_destroy_% | ||
molecule_destroy_%: | ||
cd ansible/; molecule destroy -s $* | ||
|
||
.PHONY: molecule_dev molecule_converge molecule_test molecule_verify molecule_destroy | ||
molecule_dev: molecule_dev_default | ||
molecule_converge: molecule_converge_default | ||
molecule_test: molecule_test_default | ||
molecule_verify: molecule_verify_default | ||
molecule_destroy: molecule_destroy_default | ||
|
||
.PHONY: molecule | ||
molecule: molecule_dev | ||
@echo "Molecule ran through. For test driven development you can now write" | ||
@echo "your test. Afterwards you can run molecule_verify to see the expected" | ||
@echo "fail. Once the ansible code is added it could be applied with " | ||
@echo "molecule_converge. Another molecule_verify should succesfully run now" | ||
@echo "molecule_destroy will destroy your instances and the secutiry groups" |