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

This commit is contained in:
Zuul 2022-02-22 16:39:50 +00:00 committed by Gerrit Code Review
commit c5f56060e2
3 changed files with 5 additions and 3 deletions

View File

@ -18,11 +18,12 @@ class vitrage::db::sync(
) {
include vitrage::deps
include vitrage::params
exec { 'vitrage-db-sync':
command => "vitrage-dbsync ${extra_params}",
path => '/usr/bin',
user => 'vitrage',
user => $::vitrage::params::user,
refreshonly => true,
try_sleep => 5,
tries => 10,

View File

@ -7,6 +7,7 @@ class vitrage::params {
$pyver3 = $::openstacklib::defaults::pyver3
$client_package_name = 'python3-vitrageclient'
$user = 'vitrage'
$group = 'vitrage'
case $::osfamily {

View File

@ -137,7 +137,7 @@ class vitrage::wsgi::apache (
::openstacklib::wsgi::apache { 'vitrage_wsgi':
bind_host => $bind_host,
bind_port => $port,
group => 'vitrage',
group => $::vitrage::params::group,
path => $path,
priority => $priority,
servername => $servername,
@ -150,7 +150,7 @@ class vitrage::wsgi::apache (
ssl_crl_path => $ssl_crl_path,
ssl_key => $ssl_key,
threads => $threads,
user => 'vitrage',
user => $::vitrage::params::user,
workers => $workers,
wsgi_daemon_process => 'vitrage',
wsgi_process_group => 'vitrage',