Fix PostgreSQL replica config with encrypted data directory #179

Merged
raucao merged 4 commits from bugfix/postgres_issues into master 2020-06-10 14:04:59 +00:00
Showing only changes of commit dba6629869 - Show all commits

View File

@ -41,7 +41,7 @@ postgresql_data_bag_item = data_bag_item('credentials', 'postgresql')
primary = postgresql_primary
unless primary.nil?
postgresql_data_dir = "/var/lib/postgresql/#{postgresql_version}/main"
postgresql_data_dir = "#{node["kosmos_encfs"]["data_directory"]}/postgresql/#{postgresql_version}/main"
if node['kosmos-postgresql']['ready_to_set_up_replica']
execute "set up replication" do