Use the attribute from the encfs recipe for the data directory

This commit is contained in:
Greg Karékinian 2020-06-10 14:40:16 +02:00
parent 229e9cfbd2
commit dba6629869

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