postgres: store DB password with other secrets
Let’s uncomplicate our lives. Also I’m not sure if the ~/.pgpass stuff ever worked properly or even at all.
This commit is contained in:
parent
3261bc7f98
commit
8ba6959065
2 changed files with 3 additions and 28 deletions
|
@ -65,6 +65,8 @@
|
|||
line: "ALLOWED_HOSTS = ['{{ dns_name }}']"
|
||||
- key: 'USER.*PostgreSQL username'
|
||||
line: " 'USER': '{{ user }}', # PostgreSQL username"
|
||||
- key: 'PASSWORD.*PostgreSQL password'
|
||||
line: " 'PASSWORD': '{{ password.db_pass }}', # PostgreSQL password"
|
||||
# XXX unnecessary?
|
||||
#- key: '(OPTIONS|PASSWORD).*PostgreSQL password'
|
||||
# line: " 'OPTIONS': { 'passfile': '{{ user_info.home }}/.pgpass' }, # PostgreSQL password"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue