3d9567ebad
Use the groups defined in swift_services to determine which distro packages to install onto hosts instead of installing all distro service packages on all swift hosts. The 'swift-plugin-s3' package has also been removed from debian's package list. s3api should be configured through swift middleware instead. Change-Id: I1e7a8eba6500c819d418ee565a5f03cc16dfe165
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
---
|
|
# Copyright 2018, SUSE Linux GmbH.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
swift_package_list: |-
|
|
{% set packages = swift_distro_packages %}
|
|
{% if swift_services['swift-account-server']['group'] in group_names %}
|
|
{% set _ = packages.extend(swift_account_distro_packages) %}
|
|
{% endif %}
|
|
{% if swift_services['swift-container-server']['group'] in group_names %}
|
|
{% set _ = packages.extend(swift_container_distro_packages) %}
|
|
{% endif %}
|
|
{% if swift_services['swift-object-server']['group'] in group_names %}
|
|
{% set _ = packages.extend(swift_object_distro_packages) %}
|
|
{% endif %}
|
|
{% if swift_services['swift-proxy-server']['group'] in group_names %}
|
|
{% set _ = packages.extend(swift_proxy_distro_packages) %}
|
|
{% endif %}
|
|
{% set _ = packages.extend(swift_service_distro_packages) %}
|
|
{{ packages }}
|
|
|
|
_swift_bin: "/usr/bin"
|