aboutsummaryrefslogtreecommitdiff
path: root/modules/role/templates/cryptoportfolio
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-14 01:12:04 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-14 01:14:03 +0200
commit808f822507d47cc6e47da41e206ff9b942b506df (patch)
tree1854f0d3b061312810e635206a67a1c548070015 /modules/role/templates/cryptoportfolio
parentb0439bf9b68d4e11a1511b289cba15ea10588d8d (diff)
downloadPuppet-808f822507d47cc6e47da41e206ff9b942b506df.tar.gz
Puppet-808f822507d47cc6e47da41e206ff9b942b506df.tar.zst
Puppet-808f822507d47cc6e47da41e206ff9b942b506df.zip
Move postgresql replication to its right place
Diffstat (limited to 'modules/role/templates/cryptoportfolio')
-rw-r--r--modules/role/templates/cryptoportfolio/postgresql_backup.conf.erb5
-rw-r--r--modules/role/templates/cryptoportfolio/postgresql_backup@.service.erb34
2 files changed, 0 insertions, 39 deletions
diff --git a/modules/role/templates/cryptoportfolio/postgresql_backup.conf.erb b/modules/role/templates/cryptoportfolio/postgresql_backup.conf.erb
deleted file mode 100644
index 860089b..0000000
--- a/modules/role/templates/cryptoportfolio/postgresql_backup.conf.erb
+++ /dev/null
@@ -1,5 +0,0 @@
1listen_addresses= ''
2unix_socket_directories = '<%= @pg_path %>'
3data_directory = '<%= @pg_path %>'
4wal_level = logical
5
diff --git a/modules/role/templates/cryptoportfolio/postgresql_backup@.service.erb b/modules/role/templates/cryptoportfolio/postgresql_backup@.service.erb
deleted file mode 100644
index 245a1cb..0000000
--- a/modules/role/templates/cryptoportfolio/postgresql_backup@.service.erb
+++ /dev/null
@@ -1,34 +0,0 @@
1[Unit]
2Description=PostgreSQL database server
3After=network.target
4
5[Service]
6Type=forking
7TimeoutSec=120
8User=postgres
9Group=postgres
10
11Environment=PGROOT=<%= @mountpoint %>/%i/postgresql
12
13SyslogIdentifier=postgres
14PIDFile=<%= @mountpoint %>/%i/postgresql/postmaster.pid
15RuntimeDirectory=postgresql
16RuntimeDirectoryMode=755
17
18ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}
19ExecStart= /usr/bin/pg_ctl -s -D ${PGROOT} start -w -t 120
20ExecReload=/usr/bin/pg_ctl -s -D ${PGROOT} reload
21ExecStop= /usr/bin/pg_ctl -s -D ${PGROOT} stop -m fast
22
23# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
24# killing Postgres, so adjust it downward
25OOMScoreAdjust=-200
26
27# Additional security-related features
28PrivateTmp=true
29ProtectHome=true
30ProtectSystem=full
31NoNewPrivileges=true
32
33[Install]
34WantedBy=multi-user.target