d74c88dcb5
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/837706 Change-Id: I2631e6f00011942954be7c776e3c99a11bdfb28d
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
---
|
|
# Copyright 2018, Rackspace US, Inc.
|
|
#
|
|
# 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.
|
|
|
|
systemd_mount_states:
|
|
reloaded: reload
|
|
restarted: reload-or-restart
|
|
started: reload-or-restart
|
|
stopped: stopped
|
|
absent: stopped
|
|
|
|
systemd_mount_types: "{{ systemd_mounts | map(attribute='type') | list }}"
|
|
|
|
systemd_mount_packages: |-
|
|
{% set packages = [] %}
|
|
{% set mount_types = systemd_mounts | map(attribute='type') | list %}
|
|
{% if 'nfs' in mount_types %}
|
|
{% set _ = packages.extend(systemd_nfs_packages) %}
|
|
{% endif %}
|
|
{% if 'ceph' in mount_types %}
|
|
{% set _ = packages.extend(systemd_ceph_packages) %}
|
|
{% endif %}
|
|
{% if 'fuse.s3fs' in mount_types %}
|
|
{% set _ = packages.extend(systemd_s3_packages) %}
|
|
{% endif %}
|
|
{% if 'glusterfs' in mount_types %}
|
|
{% set _ = packages.extend(systemd_glusterfs_packages) %}
|
|
{% endif %}
|
|
{{ packages }}
|