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 {