Always set the promote trigger file config
Only setting it for standby servers isn't useful, as we need to be able to touch this file to trigger the promotion of a new primary server after running Chef on it.
This commit is contained in:
parent
4be542670b
commit
f75aeaf9b5
@ -67,9 +67,7 @@ action :create do
|
||||
listen_addresses: "0.0.0.0"
|
||||
}
|
||||
|
||||
if new_resource.role == "replica"
|
||||
additional_config[:promote_trigger_file] = "#{postgresql_data_dir}/failover.trigger"
|
||||
end
|
||||
additional_config[:promote_trigger_file] = "#{postgresql_data_dir}/failover.trigger"
|
||||
|
||||
ssl_cert = postgresql_data_bag_item['ssl_cert']
|
||||
ssl_cert_path = "#{postgresql_data_dir}/server.crt"
|
||||
|
Loading…
x
Reference in New Issue
Block a user