firewall_master: move secrets to password store

This commit is contained in:
Timotej Lazar 2024-02-13 13:13:56 +01:00
parent d94e79f8b7
commit 37c025e2a0
3 changed files with 8 additions and 9 deletions

View file

@ -1,5 +1,4 @@
[defaults]
remote_user = root
vault_identity = network
ask_vault_pass = true
filter_plugins = filter_plugins

View file

@ -9,7 +9,7 @@
become_method: su
become_flags: "-s /bin/sh"
git:
repo: "{{ friwall_repo }}"
repo: '{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="friwall_repo") }}'
dest: /srv/friwall/app
force: yes
notify: reload uwsgi

View file

@ -1,10 +1,10 @@
{
"ldap_host": "{{ domain }}",
"ldap_user": "{{ ldap_user }}",
"ldap_pass": "{{ ldap_pass }}",
"ldap_user": "{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="ldap_user") }}",
"ldap_pass": "{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="ldap_pass") }}",
"ldap_base_dn": "{{ ldap_base_dn }}",
"oidc_server": "{{ oidc_server }}",
"oidc_client_id": "{{ oidc_client_id }}",
"oidc_client_secret": "{{ oidc_client_secret }}",
"wg_net": "{{ wg_net }}",
}
"oidc_server": "{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="oidc_server") }}",
"oidc_client_id": "{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="oidc_client_id") }}",
"oidc_client_secret": "{{ lookup("passwordstore", "hosts/"~inventory_hostname, subkey="oidc_client_secret") }}",
"wg_net": "{{ wg_net }}"
}