-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
SHELL := bash
CURRENT_DIR = $(shell pwd)
ENV_FILE := $(CURRENT_DIR)/.envrc
POETRY_COMMAND := $(shell which poetry)
create-venv:
@$(POETRY_COMMAND) install
install-roles-and-collections:
@$(POETRY_COMMAND) run ansible-galaxy role install -r requirements.yml
@$(POETRY_COMMAND) run ansible-galaxy collection install -r requirements.yml
shell-env:
@$(POETRY_COMMAND) shell
lint:
@ansible-lint --force-color
clean-up:
@$(POETRY_COMMAND) run ansible-playbook cleanup.yml $(EXTRA_ARGS)
create-kube-clusters:
direnv allow $(ENV_FILE)
@$(POETRY_COMMAND) run ansible-playbook clusters.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-extras:
direnv allow $(ENV_FILE)
@$(POETRY_COMMAND) run ansible-playbook extras.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-gloo:
direnv allow $(ENV_FILE)
@$(POETRY_COMMAND) run ansible-playbook gloo.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
tools:
direnv allow $(ENV_FILE)
@$(POETRY_COMMAND) run ansible-playbook tools.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
test:
direnv allow $(ENV_FILE)
@$(POETRY_COMMAND) run ansible-playbook test.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)