tripleo-heat-templates/deployment/manila/manila-share-common.yaml
Bogdan Dobrelya d0ca9fe631 Fix trailing slashes in bind-mounts and linting
Podman is not always happy with bind-mounts ending
with / (See I094120f7f2f6bfcfc0cc5843aa1b23629cd90a23)

Follow up If951f9643d67574c1225301aab7c9e4b0d316b7f
with that YAML linter couldn't catch.

Improve linter to process all volumes in templates, including
common/logging services templates, and neither puppet, not ansible
ones, like deployment/deprecated/multipathd-container.yaml.

Change-Id: Ia517b34c9d633101502bd8788e7b8764e75bbe64
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2022-03-08 12:13:01 +00:00

78 lines
2.6 KiB
YAML

heat_template_version: wallaby
description: >
Provides the list of Docker volumes and environment to be used by the
ManilaShare service. The same list is used for HA and non-HA deployments.
parameters:
EndpointMap:
default: {}
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
ServiceData:
default: {}
description: Dictionary packing service data
type: json
ServiceNetMap:
default: {}
description: Mapping of service_name -> network name. Typically set
via parameter_defaults in the resource registry. Use
parameter_merge_strategies to merge it with the defaults.
type: json
RoleName:
default: ''
description: Role name on which the service is applied
type: string
RoleParameters:
default: {}
description: Parameters specific to the role
type: json
ManilaCephFSCephFSProtocolHelperType:
default: CEPHFS
description: Protocol type ('CEPHFS' or 'NFS') when cephfs back end
is enabled. Set via manila cephfs environment files.
type: string
constraints:
- allowed_values: ['CEPHFS', 'NFS']
CephConfigPath:
type: string
default: "/var/lib/tripleo-config/ceph"
description: |
The path where the Ceph Cluster config files are stored on the host.
conditions:
cephfs_nfs_enabled: {equals: [{get_param: ManilaCephFSCephFSProtocolHelperType}, 'NFS']}
resources:
ContainersCommon:
type: ../containers-common.yaml
outputs:
manila_share_volumes:
description: Volumes for the manila-share container (HA or non-HA)
value:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
- - /var/lib/kolla/config_files/manila_share.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/manila:/var/lib/kolla/config_files/src:ro
- list_join:
- ':'
- - {get_param: CephConfigPath}
- - '/var/lib/kolla/config_files/src-ceph'
- - 'ro'
- /dev:/dev
- /run:/run
- /sys:/sys
- /lib/modules:/lib/modules:ro
- /var/lib/manila:/var/lib/manila:z
- /var/log/containers/manila:/var/log/manila:z
- if:
- cephfs_nfs_enabled
- - /etc/ganesha:/etc/ganesha
- /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
manila_share_environment:
description: Docker environment for the manila-share container (HA or non-HA)
value:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS