Avoid hard-coding OS user/group in each manifest

and replace hard-codes by definition in params.pp .

Change-Id: I808f2c8bb4b8222b03c96faf400fb0a439dc31cd
This commit is contained in:
Takashi Kajinami 2022-02-21 01:42:48 +09:00
parent 538f6d5237
commit 00064f41d2
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -6,6 +6,7 @@ class trove::params {
include openstacklib::defaults
$client_package_name = 'python3-troveclient'
$user = 'trove'
$group = 'trove'
case $::osfamily {