khuedoan-homelab/metal/Makefile
Khue Doan 66c70c023f refactor(metal): convert inventories back to YAML
Easier for Vagrant (and other tools in the future) to parse
2022-01-02 12:27:21 +07:00

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