Use groups to determine distro packages to install
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
This commit is contained in:
parent
d690240354
commit
3d9567ebad
@ -32,12 +32,19 @@ swift_service_distro_packages:
|
|||||||
- python-memcache
|
- python-memcache
|
||||||
- python-swift
|
- python-swift
|
||||||
- swift
|
- swift
|
||||||
|
|
||||||
|
swift_account_distro_packages:
|
||||||
- swift-account
|
- swift-account
|
||||||
|
|
||||||
|
swift_container_distro_packages:
|
||||||
- swift-container
|
- swift-container
|
||||||
|
|
||||||
|
swift_object_distro_packages:
|
||||||
- swift-object
|
- swift-object
|
||||||
- swift-plugin-s3
|
|
||||||
|
swift_proxy_distro_packages:
|
||||||
- swift-proxy
|
- swift-proxy
|
||||||
|
|
||||||
swift_rsync_service_name: rsync
|
swift_rsync_service_name: rsync
|
||||||
|
|
||||||
swift_sshd: ssh
|
swift_sshd: ssh
|
||||||
|
@ -13,5 +13,21 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# 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"
|
_swift_bin: "/usr/bin"
|
||||||
|
@ -29,14 +29,22 @@ swift_devel_distro_packages:
|
|||||||
|
|
||||||
swift_service_distro_packages:
|
swift_service_distro_packages:
|
||||||
- openstack-swift
|
- openstack-swift
|
||||||
- openstack-swift-account
|
|
||||||
- openstack-swift-container
|
|
||||||
- openstack-swift-object
|
|
||||||
- openstack-swift-proxy
|
|
||||||
- python-keystonemiddleware
|
- python-keystonemiddleware
|
||||||
- python-memcached
|
- python-memcached
|
||||||
- python-swift
|
- 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_rsync_service_name: rsyncd
|
||||||
|
|
||||||
swift_sshd: sshd
|
swift_sshd: sshd
|
||||||
|
@ -29,14 +29,22 @@ swift_devel_distro_packages:
|
|||||||
|
|
||||||
swift_service_distro_packages:
|
swift_service_distro_packages:
|
||||||
- openstack-swift
|
- openstack-swift
|
||||||
- openstack-swift-account
|
|
||||||
- openstack-swift-container
|
|
||||||
- openstack-swift-object
|
|
||||||
- openstack-swift-proxy
|
|
||||||
- python-keystonemiddleware
|
- python-keystonemiddleware
|
||||||
- python-python-memcached
|
- python-python-memcached
|
||||||
- python-swift
|
- 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_rsync_service_name: rsyncd
|
||||||
|
|
||||||
swift_sshd: sshd
|
swift_sshd: sshd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user