aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-10-03 18:52:48 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-10-03 18:52:48 -0400
commit5725d926f9ef7bc750f6b09bf67b33aa3e033a6f (patch)
treef174800b75b3e12ce1ce4e4e3b48077aa21bdb6a /readme.md
parent6a0aa89e3dfd7bd0755b67931532eaa173f73919 (diff)
downloadalpine-postgres-5725d926f9ef7bc750f6b09bf67b33aa3e033a6f.tar.gz
alpine-postgres-5725d926f9ef7bc750f6b09bf67b33aa3e033a6f.tar.xz
Write out pgpass, also document how to secure the database for production use
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index c33eb97..a9cb622 100644
--- a/readme.md
+++ b/readme.md
@@ -3,3 +3,24 @@
Ideally used in conjunction with my Alpine Linux
playbook, though it shouldn't be hard to adapt it to
other systems.
+
+
+Securing your postgres installation should go as follows:
+
+```
+root@alpine-dev /root # psql -U postgres
+psql (11.5)
+Type "help" for help.
+
+postgres=# \password
+Enter new password:
+Enter it again:
+postgres=# \q
+root@alpine-dev /root # sv down postgres
+root@alpine-dev /root # sed -i.bak -e's/trust$/md5/g' /var/postgres/pg_hba.conf
+```
+
+Ideally add the password to your `~/.pgpass` if you're going to do
+backups from cron or similar. This can be done by defining `postgres_pgpass`
+as found commented out in `defaults/main.yml`
+