server: Skip unnecessary installation of separate packages
Currently both neutron-server and separate service packages are
installed regardless of the services actually used. However this is
quite redundant especially when only neutron-server is used in CentOS.
Skip installation of separate packages when the monolithic server
service is requested.
Change-Id: I72359a2e78c57de57722d01b4c16c0db85189f54
(cherry picked from commit a4d9425fe8
)
This commit is contained in:
parent
944ba5cd3b
commit
e643c3cd04
@ -359,27 +359,29 @@ the neutron::services::vpnaas class.")
|
||||
'DEFAULT/enable_default_route_bfd': value => $enable_default_route_bfd;
|
||||
}
|
||||
|
||||
if $server_package {
|
||||
package { 'neutron-server':
|
||||
ensure => $package_ensure,
|
||||
name => $::neutron::params::server_package,
|
||||
tag => ['openstack', 'neutron-package'],
|
||||
if $service_name {
|
||||
if $server_package {
|
||||
package { 'neutron-server':
|
||||
ensure => $package_ensure,
|
||||
name => $::neutron::params::server_package,
|
||||
tag => ['openstack', 'neutron-package'],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if $api_package_name {
|
||||
package { 'neutron-api':
|
||||
ensure => $package_ensure,
|
||||
name => $api_package_name,
|
||||
tag => ['openstack', 'neutron-package'],
|
||||
} else {
|
||||
if $api_package_name {
|
||||
package { 'neutron-api':
|
||||
ensure => $package_ensure,
|
||||
name => $api_package_name,
|
||||
tag => ['openstack', 'neutron-package'],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if $rpc_package_name {
|
||||
package { 'neutron-rpc-server':
|
||||
ensure => $package_ensure,
|
||||
name => $rpc_package_name,
|
||||
tag => ['openstack', 'neutron-package'],
|
||||
if $rpc_package_name {
|
||||
package { 'neutron-rpc-server':
|
||||
ensure => $package_ensure,
|
||||
name => $rpc_package_name,
|
||||
tag => ['openstack', 'neutron-package'],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user