Merge "Avoid hard-coding OS user/group in each manifest"

This commit is contained in:
Zuul 2022-02-22 15:32:33 +00:00 committed by Gerrit Code Review
commit 769f3fee40
2 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,7 @@
# #
# [*user*] # [*user*]
# (Optional) User to run dbsync command. # (Optional) User to run dbsync command.
# Defaults to 'tacker' # Defaults to $::tacker::params::user
# #
# [*db_sync_timeout*] # [*db_sync_timeout*]
# (Optional) Timeout for the execution of the db_sync # (Optional) Timeout for the execution of the db_sync
@ -18,9 +18,9 @@
# #
class tacker::db::sync( class tacker::db::sync(
$extra_params = '--config-file /etc/tacker/tacker.conf', $extra_params = '--config-file /etc/tacker/tacker.conf',
$user = 'tacker', $user = $::tacker::params::user,
$db_sync_timeout = 300, $db_sync_timeout = 300,
) { ) inherits tacker::params {
include tacker::deps include tacker::deps

View File

@ -3,7 +3,8 @@
class tacker::params { class tacker::params {
include openstacklib::defaults include openstacklib::defaults
$group = 'tacker' $user = 'tacker'
$group = 'tacker'
$client_package_name = 'python3-tackerclient' $client_package_name = 'python3-tackerclient'
case $::osfamily { case $::osfamily {