heat_template_version: pike

description: >
  Openstack Manila unity backend.

parameters:
  ManilaUnityDriverHandlesShareServers:
    type: string
    default: true
  ManilaUnityBackendName:
    type: string
    default: tripleo_manila_unity
  ManilaUnityNasLogin:
    type: string
    default: ''
  ManilaUnityNasPassword:
    type: string
    default: ''
  ManilaUnityNasServer:
    type: string
    default: ''
  ManilaUnityServerMetaPool:
    type: string
    default: ''
  ManilaUnityShareDataPools:
    type: string
    default: ''
  ManilaUnityEthernetPorts:
    type: string
    default: ''
  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.  This
                 mapping overrides those in ServiceNetMapDefaults.
    type: json
  DefaultPasswords:
    default: {}
    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
  EndpointMap:
    default: {}
    type: json
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.

outputs:
  role_data:
    description: Role data for the Manila Unity backend.
    value:
      service_name: manila_backend_unity
      config_settings:
        manila::backend::dellemc_unity::title: {get_param: ManilaUnityBackendName}
        manila::backend::dellemc_unity::emc_nas_login: {get_param: ManilaUnityNasLogin}
        manila::backend::dellemc_unity::driver_handles_share_servers: {get_param: ManilaUnityDriverHandlesShareServers}
        manila::backend::dellemc_unity::emc_nas_password: {get_param: ManilaUnityNasPassword}
        manila::backend::dellemc_unity::emc_nas_server: {get_param: ManilaUnityNasServer}
        manila::backend::dellemc_unity::emc_share_backend: {'unity'}
        manila::backend::dellemc_unity::unity_server_meta_pool: {get_param: ManilaUnityServerMetaPool}
        manila::backend::dellemc_unity::unity_share_data_pools: {get_param: ManilaUnityShareDataPools}
        manila::backend::dellemc_unity::unity_ethernet_ports: {get_param: ManilaUnityEthernetPorts}
      step_config: