create hashicorpstack group

This commit is contained in:
vincent 2022-03-30 18:18:47 +02:00
parent 0773e8d767
commit 09ef92a704
8 changed files with 20 additions and 27 deletions

View 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 }}"

View File

@ -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"

View File

@ -0,0 +1,8 @@
- hosts: HashicorpStack
roles:
- role: ansible-consul
become: true
- role: ansible-hashicorp-vault
become: true
- role: ansible-nomad
become: true

View File

@ -1,4 +0,0 @@
- hosts: consul
roles:
- role: ansible-consul
become: true

View File

@ -1,8 +0,0 @@
---
- hosts:
- VPS
- server
- dhcp
roles:
- role: ansible-nomad
become: true

View File

@ -1,4 +0,0 @@
- hosts: vault
roles:
- role: ansible-hashicorp-vault
become: true

View File

@ -21,10 +21,7 @@ corwin
corwin corwin
oscar oscar
[consul:children] [HashicorpStack:children]
server server
VPS VPS
dhcp
[vault]
gerard
oscar

View File

@ -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