Avoid hard-coding OS user/group in each manifest
and replace hard-codes by definition in params.pp . Change-Id: I3d419faaa33935476b705a58dac949fb7ae97eba
This commit is contained in:
@@ -13,11 +13,12 @@ class watcher::db::create_schema(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
include watcher::deps
|
include watcher::deps
|
||||||
|
include watcher::params
|
||||||
|
|
||||||
exec { 'watcher-db-manage-create_schema':
|
exec { 'watcher-db-manage-create_schema':
|
||||||
command => "watcher-db-manage ${extra_params} create_schema",
|
command => "watcher-db-manage ${extra_params} create_schema",
|
||||||
path => '/usr/bin',
|
path => '/usr/bin',
|
||||||
user => 'watcher',
|
user => $::watcher::params::user,
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
try_sleep => 5,
|
try_sleep => 5,
|
||||||
tries => 10,
|
tries => 10,
|
||||||
|
|||||||
@@ -14,11 +14,12 @@ class watcher::db::upgrade(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
include watcher::deps
|
include watcher::deps
|
||||||
|
include watcher::params
|
||||||
|
|
||||||
exec { 'watcher-db-manage-upgrade':
|
exec { 'watcher-db-manage-upgrade':
|
||||||
command => "watcher-db-manage ${extra_params} upgrade",
|
command => "watcher-db-manage ${extra_params} upgrade",
|
||||||
path => '/usr/bin',
|
path => '/usr/bin',
|
||||||
user => 'watcher',
|
user => $::watcher::params::user,
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
try_sleep => 5,
|
try_sleep => 5,
|
||||||
tries => 10,
|
tries => 10,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ class watcher::params {
|
|||||||
include openstacklib::defaults
|
include openstacklib::defaults
|
||||||
|
|
||||||
$client_package_name = 'python3-watcherclient'
|
$client_package_name = 'python3-watcherclient'
|
||||||
|
$user = 'watcher'
|
||||||
$group = 'watcher'
|
$group = 'watcher'
|
||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class watcher::wsgi::apache (
|
|||||||
::openstacklib::wsgi::apache { 'watcher_wsgi':
|
::openstacklib::wsgi::apache { 'watcher_wsgi':
|
||||||
bind_host => $bind_host,
|
bind_host => $bind_host,
|
||||||
bind_port => $port,
|
bind_port => $port,
|
||||||
group => 'watcher',
|
group => $::watcher::params::group,
|
||||||
path => $path,
|
path => $path,
|
||||||
priority => $priority,
|
priority => $priority,
|
||||||
servername => $servername,
|
servername => $servername,
|
||||||
@@ -145,7 +145,7 @@ class watcher::wsgi::apache (
|
|||||||
ssl_crl_path => $ssl_crl_path,
|
ssl_crl_path => $ssl_crl_path,
|
||||||
ssl_key => $ssl_key,
|
ssl_key => $ssl_key,
|
||||||
threads => $threads,
|
threads => $threads,
|
||||||
user => 'watcher',
|
user => $::watcher::params::user,
|
||||||
workers => $workers,
|
workers => $workers,
|
||||||
wsgi_daemon_process => 'watcher',
|
wsgi_daemon_process => 'watcher',
|
||||||
wsgi_process_display_name => $wsgi_process_display_name,
|
wsgi_process_display_name => $wsgi_process_display_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user