feat: enable certificate renewal for nomad and vault in hashistack_ca
Until now this role was not able to renew nomad and vault leaf certificates, tho the code to do so was present. It can now do it.
This commit is contained in:
parent
fe886edd5f
commit
03f58b49ac
@ -3,7 +3,7 @@
|
|||||||
hashistack_ca_directory: "/etc/hashistack/certificates"
|
hashistack_ca_directory: "/etc/hashistack/certificates"
|
||||||
hashistack_ca_use_cryptography: false
|
hashistack_ca_use_cryptography: false
|
||||||
hashistack_ca_action: "noop"
|
hashistack_ca_action: "noop"
|
||||||
hashistack_ca_domain: example.com
|
hashistack_ca_domain: "*"
|
||||||
hashistack_ca_directory_owner: root
|
hashistack_ca_directory_owner: root
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
|
@ -45,3 +45,15 @@
|
|||||||
when:
|
when:
|
||||||
- hashistack_ca_renew_leaf
|
- hashistack_ca_renew_leaf
|
||||||
- "('consul_servers' in group_names) or ('consul_agents' in group_names)"
|
- "('consul_servers' in group_names) or ('consul_agents' in group_names)"
|
||||||
|
|
||||||
|
- name: "Nomad leaf certificates | Import renew_nomad.yml"
|
||||||
|
ansible.builtin.include_tasks: renew/renew_nomad.yml
|
||||||
|
when:
|
||||||
|
- hashistack_ca_renew_leaf
|
||||||
|
- "('nomad_servers' in group_names) or ('nomad_clients' in group_names)"
|
||||||
|
|
||||||
|
- name: "Vault leaf certificates | Import renew_vault.yml"
|
||||||
|
ansible.builtin.include_tasks: renew/renew_vault.yml
|
||||||
|
when:
|
||||||
|
- hashistack_ca_renew_leaf
|
||||||
|
- "'vault_servers' in group_names"
|
||||||
|
Loading…
Reference in New Issue
Block a user