Merge "Prevent keystone eventlet from starting"

This commit is contained in:
Jenkins 2016-04-22 22:44:01 +00:00 committed by Gerrit Code Review
commit 0812783ddd
2 changed files with 19 additions and 0 deletions

View File

@ -515,6 +515,11 @@
# (optional) Specify the keystone system group to be used with keystone-manage.
# Defaults to 'keystone'
#
# [*manage_policyrcd*]
# (optional) Whether to manage the policy-rc.d on debian based systems to
# prevent keystone eventlet from auto-starting on package install.
# Defaults to false
#
# DEPRECATED PARAMETERS
#
# [*service_provider*]
@ -648,6 +653,7 @@ class keystone(
$domain_config_directory = '/etc/keystone/domains',
$keystone_user = $::keystone::params::keystone_user,
$keystone_group = $::keystone::params::keystone_group,
$manage_policyrcd = false,
# DEPRECATED PARAMETERS
$admin_workers = max($::processorcount, 2),
$public_workers = max($::processorcount, 2),
@ -869,6 +875,12 @@ class keystone(
'eventlet_server/public_workers': value => $public_workers;
}
if $manage_policyrcd {
# openstacklib::policyrcd only affects debian based systems.
class { '::openstacklib::policyrcd': services => ['keystone'] }
Class['::openstacklib::policyrcd'] -> Package['keystone']
}
if $manage_service {
if $enabled {
$service_ensure = 'running'

View File

@ -0,0 +1,7 @@
---
features:
- Provides bool to determine if policy-rc.d should be managed
for keystone eventlet service.
issues:
- Keystone eventlet service is auto-started on debian based
systems on package install.