Merge "Centralize user/group definition"
This commit is contained in:
commit
2014fe5bcb
@ -12,11 +12,12 @@ class placement::db::sync(
|
||||
) {
|
||||
|
||||
include placement::deps
|
||||
include placement::params
|
||||
|
||||
exec { 'placement-manage-db-sync':
|
||||
command => 'placement-manage db sync',
|
||||
path => ['/bin', '/usr/bin', '/usr/local/bin'],
|
||||
user => 'placement',
|
||||
user => $::placement::params::user,
|
||||
refreshonly => true,
|
||||
try_sleep => 5,
|
||||
tries => 10,
|
||||
|
@ -5,6 +5,7 @@ class placement::params {
|
||||
include placement::deps
|
||||
include openstacklib::defaults
|
||||
|
||||
$user = 'placement'
|
||||
$group = 'placement'
|
||||
|
||||
case $facts['os']['family'] {
|
||||
|
@ -167,7 +167,7 @@ class placement::wsgi::apache (
|
||||
::openstacklib::wsgi::apache { 'placement_wsgi':
|
||||
bind_host => $bind_host,
|
||||
bind_port => $port,
|
||||
group => 'placement',
|
||||
group => $::placement::params::group,
|
||||
path => $path,
|
||||
priority => $priority,
|
||||
servername => $servername,
|
||||
@ -180,7 +180,7 @@ class placement::wsgi::apache (
|
||||
ssl_crl_path => $ssl_crl_path,
|
||||
ssl_key => $ssl_key,
|
||||
threads => $threads,
|
||||
user => 'placement',
|
||||
user => $::placement::params::user,
|
||||
vhost_custom_fragment => $vhost_custom_fragment,
|
||||
workers => $workers,
|
||||
wsgi_daemon_process => 'placement-api',
|
||||
|
Loading…
Reference in New Issue
Block a user