Skip to content

Commit

Permalink
Added a customisation of barman templates
Browse files Browse the repository at this point in the history
The objective is to be able to add new parameters (ie: streaming_wals_directory)
  • Loading branch information
jbe33 authored and aya committed May 15, 2024
1 parent 2c2a155 commit a2d9b55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/setup_barman/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use_patroni: false
barman_user: "barman"
barman_home: "/var/lib/barman"
barman_pg_user: "barman"
barman_template_lines: []
etc_hosts_lists: []
update_etc_file: true
# SSH listening port
Expand Down
1 change: 1 addition & 0 deletions roles/setup_barman/templates/barman.postgres.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ backup_options = concurrent_backup
immediate_checkpoint = true
recovery_options = get-wal
create_slot = auto
{% for line in barman_template_lines %}{{ line }}{% endfor %}
1 change: 1 addition & 0 deletions roles/setup_barman/templates/barman.rsync.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ archiver = on
backup_options = concurrent_backup
immediate_checkpoint = true
recovery_options = get-wal
{% for line in barman_template_lines %}{{ line }}{% endfor %}

0 comments on commit a2d9b55

Please sign in to comment.