]> git.openstreetmap.org Git - chef.git/blob - cookbooks/postgresql/templates/default/pgbackrest.conf.erb
civicrm: update extensions to current state
[chef.git] / cookbooks / postgresql / templates / default / pgbackrest.conf.erb
1 [global]
2 archive-async=y
3 compress-type=zst
4 repo1-type=<%= node[:postgresql][:pgbackrest][:repo_type] %>
5 repo1-path=<%= node[:postgresql][:pgbackrest][:repo_path] %>
6 repo1-block=y
7 repo1-bundle=y
8 repo1-retention-full=<%= node[:postgresql][:pgbackrest][:repo_retention_full] %>
9 <% if node[:postgresql][:pgbackrest][:repo_cipher_type] -%>
10 repo1-cipher-type=<%= node[:postgresql][:pgbackrest][:repo_cipher_type] %>
11 <% end -%>
12 <% if node[:postgresql][:pgbackrest][:repo_cipher_pass] -%>
13 repo1-cipher-pass=<%= @credentials[node[:postgresql][:pgbackrest][:repo_cipher_pass]] %>
14 <% end -%>
15 <% if node[:postgresql][:pgbackrest][:repo_s3_bucket] -%>
16 repo1-s3-bucket=<%= node[:postgresql][:pgbackrest][:repo_s3_bucket] %>
17 <% end -%>
18 <% if node[:postgresql][:pgbackrest][:repo_s3_endpoint] -%>
19 repo1-s3-endpoint=<%= node[:postgresql][:pgbackrest][:repo_s3_endpoint] %>
20 <% end -%>
21 <% if node[:postgresql][:pgbackrest][:repo_s3_key] -%>
22 repo1-s3-key=<%= @credentials[node[:postgresql][:pgbackrest][:repo_s3_key]] %>
23 <% end -%>
24 <% if node[:postgresql][:pgbackrest][:repo_s3_key_secret] -%>
25 repo1-s3-key-secret=<%= @credentials[node[:postgresql][:pgbackrest][:repo_s3_key_secret]] %>
26 <% end -%>
27 <% if node[:postgresql][:pgbackrest][:repo_s3_region] -%>
28 repo1-s3-region=<%= node[:postgresql][:pgbackrest][:repo_s3_region] %>
29 <% end -%>
30
31 [global:archive-get]
32 process-max=2
33
34 [global:archive-push]
35 process-max=2
36 <% node[:postgresql][:clusters].each do |name, details| -%>
37 <% if details[:pgbackrest_stanza] -%>
38
39 [<%= details[:pgbackrest_stanza] %>]
40 pg1-path=/var/lib/postgresql/<%= name %>
41 <% end -%>
42 <% end -%>