Add consul bootstrap and move vault to an example
This commit is contained in:
parent
5165045ee9
commit
5b88413604
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,3 +4,5 @@ vault-keys.json
|
|||||||
nomad_bootstrap.json
|
nomad_bootstrap.json
|
||||||
ca/
|
ca/
|
||||||
collections/ansible_collections/
|
collections/ansible_collections/
|
||||||
|
consul_values.yml
|
||||||
|
vault_hashi_vault_values.yml
|
||||||
|
4
consul_values.example.yml
Normal file
4
consul_values.example.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
consul_values:
|
||||||
|
"blocky/whitelists/ads": |
|
||||||
|
- |
|
||||||
|
somedomain.com
|
@ -77,6 +77,13 @@
|
|||||||
# TODO: propogate this through via Consul and Nomad templates rather than Terraform
|
# TODO: propogate this through via Consul and Nomad templates rather than Terraform
|
||||||
value: dev.homelab
|
value: dev.homelab
|
||||||
|
|
||||||
|
- name: Write values
|
||||||
|
consul_kv:
|
||||||
|
host: "{{ inventory_hostname }}"
|
||||||
|
key: "{{ item.key }}"
|
||||||
|
value: "{{ item.value }}"
|
||||||
|
loop: "{{ consul_values | default({}) | dict2items }}"
|
||||||
|
|
||||||
- name: Setup Vault cluster
|
- name: Setup Vault cluster
|
||||||
hosts: vault_instances
|
hosts: vault_instances
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user