-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 961 Bytes
/
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
setup:
vagrant plugin install vagrant-hostmanager
echo "password" >> password_file
consul-key:
openssl rand -base64 16
start-vms:
vagrant up && vagrant hostmanager
destroy-vms:
vagrant destroy consul01 consul02 consul03
vagrant destroy vault01 vault02 vault03
build-consul-servers:
ansible-playbook -i inventory/$(ENV) playbooks/build-consul-servers.yml
bootstrap-consul:
ansible-playbook -i inventory/$(ENV) playbooks/bootstrap-consul.yml
cluster-consul:
ansible-playbook -i inventory/$(ENV) playbooks/configure-consul-cluster.yml
verify-cluster:
ansible -i inventory/$(ENV) bootstrap -a "consul members"
build-vault-servers:
ansible-playbook -i inventory/$(ENV) playbooks/build-vault-servers.yml
build-proxies:
ansible-playbook -i inventory/$(ENV) playbooks/build-haproxy.yml -v
edit-ansible-vault:
ansible-vault edit inventory/group_vars/$(ENV)/vault.yml
view-ansible-vault:
ansible-vault view inventory/group_vars/$(ENV)/vault.yml