-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (27 loc) · 829 Bytes
/
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
.PHONY: init, lint, format, clean, config, test, test-container
init:
ansible-galaxy install -r requirements.yml
lint:
ansible-lint --exclude=vagrantconfig.yaml
format:
cd configuration && dhall format config.dhall
cd configuration && dhall format esa.dhall
cd configuration && dhall format types.dhall
cd configuration && dhall format validations.dhall
clean:
vagrant destroy
yeet:
cd configuration && echo '(./esa.dhall)' | dhall-to-yaml
config:
cd configuration && echo '(./esa.dhall).hostVars' | dhall-to-yaml \
--explain \
--documents \
--generated-comment \
--output ../inventory/01-esa_generated.yml
cd configuration && echo '(./esa.dhall).ssh_config' | dhall text \
--output ssh.config
test:
vagrant up --provision
test-container:
ansible-playbook simple-web.yml
ansible-playbook ruby-web.yml