From 20cbc678bc9794a7a8d2b62260386ce1e85fbe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 18 May 2020 19:38:37 +0200 Subject: [PATCH] Add a method that returns the PostgreSQL service --- site-cookbooks/kosmos-postgresql/libraries/helpers.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site-cookbooks/kosmos-postgresql/libraries/helpers.rb b/site-cookbooks/kosmos-postgresql/libraries/helpers.rb index a3331b6..775977e 100644 --- a/site-cookbooks/kosmos-postgresql/libraries/helpers.rb +++ b/site-cookbooks/kosmos-postgresql/libraries/helpers.rb @@ -29,5 +29,11 @@ class Chef server_node['ipaddress'] end end + + def postgresql_service_name + postgresql_version = "12" + + "postgresql@#{postgresql_version}-main" + end end end