heat_template_version: pike

description: >
  Openstack Manila vmax backend.

parameters:
  ManilaVMAXDriverHandlesShareServers:
    type: string
    default: false
  ManilaVMAXBackendName:
    type: string
    default: tripleo_manila_vmax
  ManilaVMAXNasLogin:
    type: string
    default: ''
  ManilaVMAXNasPassword:
    type: string
    default: ''
  ManilaVMAXNasServer:
    type: string
    default: ''
  ManilaVMAXServerContainer:
    type: string
    default: ''
  ManilaVMAXShareDataPools:
    type: string
    default: ''
  ManilaVMAXEthernetPorts:
    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 VMAX backend.
    value:
      service_name: manila_backend_vmax
      config_settings:
        manila::backend::dellemc_vmax::title: {get_param: ManilaVMAXBackendName}
        manila::backend::dellemc_vmax::emc_nas_login: {get_param: ManilaVMAXNasLogin}
        manila::backend::dellemc_vmax::driver_handles_share_servers: {get_param: ManilaVMAXDriverHandlesShareServers}
        manila::backend::dellemc_vmax::emc_nas_password: {get_param: ManilaVMAXNasPassword}
        manila::backend::dellemc_vmax::emc_nas_server: {get_param: ManilaVMAXNasServer}
        manila::backend::dellemc_vmax::emc_share_backend: {'vmax'}
        manila::backend::dellemc_vmax::vmax_server_container: {get_param: ManilaVMAXServerContainer}
        manila::backend::dellemc_vmax::vmax_share_data_pools: {get_param: ManilaVMAXShareDataPools}
        manila::backend::dellemc_vmax::vmax_ethernet_ports: {get_param: ManilaVMAXEthernetPorts}
      step_config:

