From 00064f41d2e4c068dab10744a7ceb013af15edb4 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 21 Feb 2022 01:42:48 +0900 Subject: [PATCH] Avoid hard-coding OS user/group in each manifest and replace hard-codes by definition in params.pp . Change-Id: I808f2c8bb4b8222b03c96faf400fb0a439dc31cd --- manifests/db/sync.pp | 3 ++- manifests/params.pp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index b483a83b..c266fe4f 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -26,10 +26,11 @@ class trove::db::sync( ) { include trove::deps + include trove::params exec { 'trove-manage db_sync': path => '/usr/bin', - user => 'trove', + user => $::trove::params::user, refreshonly => true, try_sleep => 5, tries => 10, diff --git a/manifests/params.pp b/manifests/params.pp index 1a9b4fdc..71321651 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -6,6 +6,7 @@ class trove::params { include openstacklib::defaults $client_package_name = 'python3-troveclient' + $user = 'trove' $group = 'trove' case $::osfamily {