Skip to content

Commit

Permalink
add the db_passwords secrets file
Browse files Browse the repository at this point in the history
This contains the encrypted passwords for all database users

This also moves variables under the /vars/main folder to allow ansible to load all variable folders automatically
  • Loading branch information
shtlrs authored and jchristgit committed May 14, 2024
1 parent 2ebe7aa commit 74a2f65
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ansible/roles/postgres/vars/main.yml

This file was deleted.

12 changes: 12 additions & 0 deletions ansible/roles/postgres/vars/main/db_passwords.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$ANSIBLE_VAULT;1.1;AES256
39333066353561633762383262376164306238626636643162643639383233353131663063343062
3138303730363062326431626536663633663633616537320a306361356639323761666339373834
64383531613838343931616139636233636466656436656630393634656165323630663930343537
3437653633386335370a653965656231616632353966383562623261323839353134386562313233
33353561373866376362356563643265663038303364663164643561313238633435373865373234
32303439666665333038343236366139353031623934346663363162396330616234383666623938
38313361613465363539313331306531353766386431373132373465656132613262386639356563
65346535353734616665663037386363616233666437623466646137663634313666326130623031
33323933323034396431373638363638663733393836396634393535326635646232396437663362
36386335386162383866303763346331363737366331663133343164646639343764643033666132
396532326162303564353831636336323061
12 changes: 12 additions & 0 deletions ansible/roles/postgres/vars/main/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
postgres_version: "15"
postgres_daemon: "postgresql@{{ postgres_version }}-main"
postgres_user: "postgres"

postgres_users:
- name: pinnwand
password: "{{ vault_postgres_user_passwords.pinnwand }}"


postgres_databases:
- name: pinnwand
owner: pinnwand

0 comments on commit 74a2f65

Please sign in to comment.