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 a4d9425fe859c4a6ab322c5985f294368d6149c6)
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;
|
'DEFAULT/enable_default_route_bfd': value => $enable_default_route_bfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $server_package {
|
if $service_name {
|
||||||
package { 'neutron-server':
|
if $server_package {
|
||||||
ensure => $package_ensure,
|
package { 'neutron-server':
|
||||||
name => $::neutron::params::server_package,
|
ensure => $package_ensure,
|
||||||
tag => ['openstack', 'neutron-package'],
|
name => $::neutron::params::server_package,
|
||||||
|
tag => ['openstack', 'neutron-package'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
if $api_package_name {
|
||||||
if $api_package_name {
|
package { 'neutron-api':
|
||||||
package { 'neutron-api':
|
ensure => $package_ensure,
|
||||||
ensure => $package_ensure,
|
name => $api_package_name,
|
||||||
name => $api_package_name,
|
tag => ['openstack', 'neutron-package'],
|
||||||
tag => ['openstack', 'neutron-package'],
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if $rpc_package_name {
|
if $rpc_package_name {
|
||||||
package { 'neutron-rpc-server':
|
package { 'neutron-rpc-server':
|
||||||
ensure => $package_ensure,
|
ensure => $package_ensure,
|
||||||
name => $rpc_package_name,
|
name => $rpc_package_name,
|
||||||
tag => ['openstack', 'neutron-package'],
|
tag => ['openstack', 'neutron-package'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user