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

This commit is contained in:
Zuul 2022-02-22 20:17:22 +00:00 committed by Gerrit Code Review
commit 10fc41cd74
2 changed files with 8 additions and 5 deletions

View File

@ -6,21 +6,21 @@
#
# [*system_user*]
# (Optional) Run db_sync from this system user account.
# Default to ec2api
# Default to $::ec2api::params::user
#
# [*system_group*]
# (Optional) Run db_sync by this system group.
# Default to ec2api
# Default to $::ec2api::params::group
#
# [*db_sync_timeout*]
# (Optional) Timeout for the execution of the db_sync
# Defaults to 300
#
class ec2api::db::sync (
$system_user = 'ec2api',
$system_group = 'ec2api',
$system_user = $::ec2api::params::user,
$system_group = $::ec2api::params::group,
$db_sync_timeout = 300,
) {
) inherits ec2api::params {
include ec2api::deps

View File

@ -5,7 +5,10 @@
#
class ec2api::params {
include openstacklib::defaults
$user = 'ec2api'
$group = 'ec2api'
case $::osfamily {
'RedHat': {
$package_name = 'openstack-ec2-api'