You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
821 B

.PHONY: vm vagrant clean clean-all
APPS :=$(dir $(wildcard build/*/))
ANSIBLE_OPTS :=
ANSIBLE_EXTRA_OPTS:=
all: vm
vm: playbook.yml Vagrantfile vagrant
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook $(ANSIBLE_OPTS) $(ANSIBLE_EXTRA_OPTS)\
--extra-vars='var_domain="klingt.vnet" var_staging=True'\
--private-key='./.vagrant/machines/default/virtualbox/private_key'\
--inventory-file='./.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory'\
playbook.yml
klingt.net: playbook.yml Vagrantfile
ansible-playbook $(ANSIBLE_OPTS) $(ANSIBLE_EXTRA_OPTS)\
--vault-password-file='./vault.pass'\
playbook.yml
vagrant:
vagrant up
clean:
rm -f *.retry
clean-vm:
vagrant destroy -f
clean-all: clean clean-vm
@for app in $(APPS); do\
make -C "$$app" clean &> /dev/null;\
done