railiance-cluster/Makefile

21 lines
556 B
Makefile
Raw Normal View History

.DEFAULT_GOAL := help
INVENTORY ?= ansible/hosts.ini
##@ Kubernetes
k3s-install: ## Install k3s and Helm on all inventory hosts
ansible-playbook -i $(INVENTORY) ansible/bootstrap.yml
smoke: ## Run Kubernetes smoke tests
bash tests/smoke_kube.sh
##@ Help
help: ## Show this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} \
/^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } \
/^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) }' $(MAKEFILE_LIST)
.PHONY: k3s-install smoke help