mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 05:51:17 +07:00
66c70c023f
Easier for Vagrant (and other tools in the future) to parse
27 lines
382 B
Makefile
27 lines
382 B
Makefile
.POSIX:
|
|
|
|
env ?= "prod"
|
|
|
|
default: boot cluster
|
|
|
|
~/.ssh/id_ed25519:
|
|
ssh-keygen -t ed25519 -f "$@"
|
|
|
|
boot: ~/.ssh/id_ed25519
|
|
ansible-playbook \
|
|
--inventory inventories/${env}.yml \
|
|
boot.yml
|
|
|
|
cluster:
|
|
ansible-playbook \
|
|
--inventory inventories/${env}.yml \
|
|
cluster.yml
|
|
|
|
shutdown:
|
|
ansible-playbook \
|
|
--inventory inventories/${env}.yml \
|
|
shutdown.yml
|
|
|
|
vagrant:
|
|
vagrant up
|