Use the attribute from the encfs recipe for the data directory
This commit is contained in:
parent
229e9cfbd2
commit
dba6629869
@ -41,7 +41,7 @@ postgresql_data_bag_item = data_bag_item('credentials', 'postgresql')
|
|||||||
primary = postgresql_primary
|
primary = postgresql_primary
|
||||||
|
|
||||||
unless primary.nil?
|
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']
|
if node['kosmos-postgresql']['ready_to_set_up_replica']
|
||||||
execute "set up replication" do
|
execute "set up replication" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user