Refactor postgres server recipes/resource

This commit is contained in:
2026-04-08 13:21:42 +04:00
parent 2cb5540a7b
commit 290af8177a
5 changed files with 44 additions and 61 deletions

View File

@@ -36,10 +36,16 @@ class Chef
end
end
def postgresql_service_name
postgresql_version = "12"
def postgresql_version
node['kosmos_postgresql']['postgresql_version']
end
def postgresql_service
"postgresql@#{postgresql_version}-main"
end
def postgresql_data_dir
"/var/lib/postgresql/#{postgresql_version}/main"
end
end
end