Merge "Use groups to determine distro packages to install" into stable/stein

This commit is contained in:
Zuul 2019-08-30 21:49:14 +00:00 committed by Gerrit Code Review
commit 922f2d79d7
4 changed files with 51 additions and 12 deletions

View File

@ -32,10 +32,17 @@ swift_service_distro_packages:
- python-memcache
- python-swift
- swift
swift_account_distro_packages:
- swift-account
swift_container_distro_packages:
- swift-container
swift_object_distro_packages:
- swift-object
- swift-plugin-s3
swift_proxy_distro_packages:
- swift-proxy
swift_rsync_service_name: rsync

View File

@ -13,5 +13,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
swift_package_list: "{{ swift_distro_packages + swift_service_distro_packages }}"
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"

View File

@ -29,14 +29,22 @@ swift_devel_distro_packages:
swift_service_distro_packages:
- openstack-swift
- openstack-swift-account
- openstack-swift-container
- openstack-swift-object
- openstack-swift-proxy
- python-keystonemiddleware
- python-memcached
- python-swift
swift_account_distro_packages:
- openstack-swift-account
swift_container_distro_packages:
- openstack-swift-container
swift_object_distro_packages:
- openstack-swift-object
swift_proxy_distro_packages:
- openstack-swift-proxy
swift_rsync_service_name: rsyncd
swift_sshd: sshd

View File

@ -29,14 +29,22 @@ swift_devel_distro_packages:
swift_service_distro_packages:
- openstack-swift
- openstack-swift-account
- openstack-swift-container
- openstack-swift-object
- openstack-swift-proxy
- python-keystonemiddleware
- python-python-memcached
- python-swift
swift_account_distro_packages:
- openstack-swift-account
swift_container_distro_packages:
- openstack-swift-container
swift_object_distro_packages:
- openstack-swift-object
swift_proxy_distro_packages:
- openstack-swift-proxy
swift_rsync_service_name: rsyncd
swift_sshd: sshd