mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-09 06:47:01 +07:00
9e59f1ad81
Let CI pipeline do it
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}.ini \
|
|
boot.yml
|
|
|
|
cluster:
|
|
ansible-playbook \
|
|
--inventory inventories/${env}.ini \
|
|
cluster.yml
|
|
|
|
shutdown:
|
|
ansible-playbook \
|
|
--inventory inventories/${env}.ini \
|
|
shutdown.yml
|
|
|
|
vagrant:
|
|
vagrant up
|