Dmitriy Rabotyagov 483b10e5e9 Add option to use s3fs with role
Change-Id: I5cf6353a30190aa0a2f0856530a65c48437ed5ea
2021-01-05 13:52:45 +02:00

38 lines
1.2 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 %}
{{ packages }}