create hashicorpstack group
This commit is contained in:
parent
0773e8d767
commit
09ef92a704
9
group_vars/HashicorpStack
Normal file
9
group_vars/HashicorpStack
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
consul_client_addr: "0.0.0.0"
|
||||||
|
consul_datacenter: "homelab"
|
||||||
|
consul_gossip_encryption_key: "{{vault_consul_encryption}}"
|
||||||
|
consul_backup_location: "/mnt/diskstation/git/backup/consul"
|
||||||
|
consul_ansible_group: HashicorpStack
|
||||||
|
nomad_vault_enabled: true
|
||||||
|
nomad_vault_address: "http://active.vault.service.consul:8200"
|
||||||
|
nomad_vault_role: "nomad-cluster"
|
||||||
|
nomad_vault_token: "{{ vault_nomad_vault_token }}"
|
@ -1,4 +0,0 @@
|
|||||||
consul_client_addr: "0.0.0.0"
|
|
||||||
consul_datacenter: "homelab"
|
|
||||||
consul_gossip_encryption_key: "{{vault_consul_encryption}}"
|
|
||||||
consul_backup_location: "/mnt/diskstation/git/backup/consul"
|
|
8
playbooks/HashicorpStack.yml
Normal file
8
playbooks/HashicorpStack.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
- hosts: HashicorpStack
|
||||||
|
roles:
|
||||||
|
- role: ansible-consul
|
||||||
|
become: true
|
||||||
|
- role: ansible-hashicorp-vault
|
||||||
|
become: true
|
||||||
|
- role: ansible-nomad
|
||||||
|
become: true
|
@ -1,4 +0,0 @@
|
|||||||
- hosts: consul
|
|
||||||
roles:
|
|
||||||
- role: ansible-consul
|
|
||||||
become: true
|
|
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts:
|
|
||||||
- VPS
|
|
||||||
- server
|
|
||||||
- dhcp
|
|
||||||
roles:
|
|
||||||
- role: ansible-nomad
|
|
||||||
become: true
|
|
@ -1,4 +0,0 @@
|
|||||||
- hosts: vault
|
|
||||||
roles:
|
|
||||||
- role: ansible-hashicorp-vault
|
|
||||||
become: true
|
|
@ -21,10 +21,7 @@ corwin
|
|||||||
corwin
|
corwin
|
||||||
oscar
|
oscar
|
||||||
|
|
||||||
[consul:children]
|
[HashicorpStack:children]
|
||||||
server
|
server
|
||||||
VPS
|
VPS
|
||||||
|
dhcp
|
||||||
[vault]
|
|
||||||
gerard
|
|
||||||
oscar
|
|
||||||
|
3
site.yml
3
site.yml
@ -1,8 +1,7 @@
|
|||||||
---
|
---
|
||||||
- import_playbook: playbooks/global.yml
|
- import_playbook: playbooks/global.yml
|
||||||
- import_playbook: playbooks/wireguard.yml
|
- import_playbook: playbooks/wireguard.yml
|
||||||
- import_playbook: playbooks/consul.yml
|
- import_playbook: playbooks/HashicorpStack.yml
|
||||||
- import_playbook: playbooks/vault.yml
|
|
||||||
- import_playbook: playbooks/music-player.yml
|
- import_playbook: playbooks/music-player.yml
|
||||||
- import_playbook: playbooks/server.yml
|
- import_playbook: playbooks/server.yml
|
||||||
- import_playbook: playbooks/build.yml
|
- import_playbook: playbooks/build.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user