module-postgresql/templates/recovery.conf
David Crome 81b4778b93 (MODULES-1761) Provide defined resource for managing recovery.conf
Currently there is no resource to use for creating the recovery.conf

This resource can create a recovery.conf for replication with all
currently supported parameters
2015-03-30 10:27:55 +02:00

47 lines
1.3 KiB
Text

<% if @restore_command %>
restore_command = '<%= @restore_command %>'
<% end %>
<% if @archive_cleanup_command %>
archive_cleanup_command = '<%= @archive_cleanup_command %>'
<% end %>
<% if @recovery_end_command %>
recovery_end_command = '<%= @recovery_end_command %>'
<% end %>
<% if @recovery_target_name %>
recovery_target_name = '<%= @recovery_target_name %>'
<% end %>
<% if @recovery_target_time %>
recovery_target_time = '<%= @recovery_target_time %>'
<% end %>
<% if @recovery_target_xid %>
recovery_target_xid = '<%= @recovery_target_xid %>'
<% end %>
<% if @recovery_target_inclusive %>
recovery_target_inclusive = <%= @recovery_target_inclusive %>
<% end %>
<% if @recovery_target %>
recovery_target = '<%= @recovery_target %>'
<% end %>
<% if @recovery_target_timeline %>
recovery_target_timeline = '<%= @recovery_target_timeline %>'
<% end %>
<% if @pause_at_recovery_target %>
pause_at_recovery_target = <%= @pause_at_recovery_target %>
<% end %>
<% if @standby_mode %>
standby_mode = <%= @standby_mode %>
<% end %>
<% if @primary_conninfo %>
primary_conninfo = '<%= @primary_conninfo %>'
<% end %>
<% if @primary_slot_name %>
primary_slot_name = '<%= @primary_slot_name %>'
<% end %>
<% if @trigger_file %>
trigger_file = '<%= @trigger_file %>'
<% end %>
<% if @recovery_min_apply_delay %>
recovery_min_apply_delay = <%= @recovery_min_apply_delay %>
<% end %>