-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (43 loc) · 1.23 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: deploy build restore develop provision docs
# Deploy HomelabOS
deploy:
cat homelaboslogo.txt
ansible-galaxy install toke.tor
ansible-playbook -i hosts homelabos.yml
# Initial setup
setup:
cat homelaboslogo.txt
ansible-galaxy install toke.tor
ansible-playbook -i setup_hosts setup.yml
ansible-playbook -i hosts homelabos.yml
# Update just HomelabOS Services (skipping slow initial setup steps)
update:
cat homelaboslogo.txt
ansible-playbook -i hosts -t deploy homelabos.yml
# Build the HomelabOs Documentation - Requires mkdocs with the Material Theme
build:
cat homelaboslogo.txt
mkdocs build
# Restore a server with the most recent backup. Assuming Backups were running.
restore:
cat homelaboslogo.txt
ansible-playbook -i hosts restore.yml
# Spin up a development stack
develop:
cat homelaboslogo.txt
vagrant plugin install vagrant-disksize
vagrant destroy --force
vagrant up
# Re-run just the Provision step (Ansible) against the Vagrant machine
provision:
cat homelaboslogo.txt
vagrant provision
# Update just the docs
docs:
cat homelaboslogo.txt
mkdocs build
ansible-playbook -i hosts -t docs homelabos.yml
# Execute against a test server
test:
cat homelaboslogo.txt
ansible-playbook -i test_hosts homelabos.yml