From 3a27e8ad7c9ca0424192460e427cefb235d767a2 Mon Sep 17 00:00:00 2001 From: Joel Gibson Date: Tue, 2 Nov 2021 11:20:35 -0700 Subject: [PATCH] Add missing Makefile --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..3d10207c --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +BMRA_DIRECTORIES_WITH_SHELL_FILES ?= roles/ examples/ playbooks/infra/ playbooks/intel/ + +shellcheck: + find $(BMRA_DIRECTORIES_WITH_SHELL_FILES) -type f \( -name '*.sh' -o -name '*.bash' -o -name '*.ksh' -o -name '*.bashrc' -o -name '*.bash_profile' -o -name '*.bash_login' -o -name '*.bash_logout' \) \ + | xargs shellcheck + +ansible-lint: + ansible-lint playbooks/* roles/* -c .ansible-lint + +profile ?= '' +bmra-profiles: + python3 profiles/render.py --config profiles/profiles.yml --host profiles/host_vars.j2 --group profiles/group_vars.j2 --inventory profiles/inventory.j2 --output examples -p $(profile)