feat(vault): enable consul service registration automatically if consul is also enabled #9
@ -14,8 +14,14 @@
|
|||||||
|
|
||||||
- name: "Generate consul agents credentials"
|
- name: "Generate consul agents credentials"
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
_cosul_agents_accessor: "{{ lookup('password', '/dev/null chars=ascii_letters,digits') | to_uuid }}"
|
||||||
_consul_agents_token: "{{ lookup('password', '/dev/null chars=ascii_letters,digits') | to_uuid }}"
|
_consul_agents_token: "{{ lookup('password', '/dev/null chars=ascii_letters,digits') | to_uuid }}"
|
||||||
|
|
||||||
|
- name: "Generate consul vault credentials"
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
_cosul_vault_accessor: "{{ lookup('password', '/dev/null chars=ascii_letters,digits') | to_uuid }}"
|
||||||
|
_consul_vault_token: "{{ lookup('password', '/dev/null chars=ascii_letters,digits') | to_uuid }}"
|
||||||
|
|
||||||
- name: "Generate nomad credentials"
|
- name: "Generate nomad credentials"
|
||||||
block:
|
block:
|
||||||
- name: "Generate nomad root credentials"
|
- name: "Generate nomad root credentials"
|
||||||
|
@ -3,6 +3,11 @@ consul:
|
|||||||
root_token:
|
root_token:
|
||||||
secret_id: "{{ _consul_root_token }}"
|
secret_id: "{{ _consul_root_token }}"
|
||||||
tokens:
|
tokens:
|
||||||
agent: "{{ _consul_agents_token }}"
|
agent:
|
||||||
|
accessor_id: "{{ _consul_agents_accesor }}"
|
||||||
|
secret_id: "{{ _consul_agents_token }}"
|
||||||
|
vault:
|
||||||
|
accessor_id: "{{ _consul_vault_accessor }}"
|
||||||
|
secret_id: "{{ _consul_vault_token }}"
|
||||||
nomad:
|
nomad:
|
||||||
root_token: "{{ _nomad_root_token }}"
|
root_token: "{{ _nomad_root_token }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user