e7f90201bb
Manila supports the configuration of storage availability zones for each share back end in the cloud. Add ManilaStorageAvailabilityZone parameter that configures manila's DEFAULT/storage_availability_zone. Adds the corresponding Manila<>AvailabilityZone parameter for each of the manila back ends on this repository. This parameter is not mandatory, and it defaults to the one configured in the DEFAULT session of the Manila configuration file. Depends-On: Ic71545d786b851e7d3f3ce8502e913b81fc70059 Change-Id: I78a64e779d1e55e6ee8de5004457dce7c7906504
107 lines
3.6 KiB
YAML
107 lines
3.6 KiB
YAML
heat_template_version: wallaby
|
|
|
|
description: >
|
|
Openstack Manila base service. Shared by manila-api/scheduler/share services
|
|
|
|
parameters:
|
|
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
|
|
EndpointMap:
|
|
default: {}
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
via parameter_defaults in the resource registry.
|
|
type: json
|
|
ManilaIPv6:
|
|
default: False
|
|
description: Set to True to enable IPv6 access in manila.
|
|
type: boolean
|
|
Debug:
|
|
default: false
|
|
description: Set to True to enable debugging on all services.
|
|
type: boolean
|
|
ManilaDebug:
|
|
default: false
|
|
description: Set to True to enable debugging Manila services.
|
|
type: boolean
|
|
EnableSQLAlchemyCollectd:
|
|
type: boolean
|
|
description: >
|
|
Set to true to enable the SQLAlchemy-collectd server plugin
|
|
default: false
|
|
ManilaPassword:
|
|
description: The password for the manila service account.
|
|
type: string
|
|
hidden: true
|
|
NotificationDriver:
|
|
type: comma_delimited_list
|
|
default: 'noop'
|
|
description: Driver or drivers to handle sending notifications.
|
|
ManilaRpcResponseTimeout:
|
|
default: 60
|
|
description: Manila's RPC response timeout, in seconds.
|
|
type: number
|
|
ManilaStorageAvailabilityZone:
|
|
default: nova
|
|
description: The Manila service's storage availability zone.
|
|
type: string
|
|
|
|
outputs:
|
|
role_data:
|
|
description: Role data for the Manila Base service.
|
|
value:
|
|
service_name: manila_base
|
|
config_settings:
|
|
manila::storage_availability_zone: {get_param: ManilaStorageAvailabilityZone}
|
|
manila::notification_driver: {get_param: NotificationDriver}
|
|
manila::logging::debug:
|
|
if:
|
|
- {get_param: ManilaDebug}
|
|
- true
|
|
- {get_param: Debug}
|
|
manila::db::database_db_max_retries: -1
|
|
manila::db::database_max_retries: -1
|
|
manila::sql_connection:
|
|
make_url:
|
|
scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
|
|
username: manila
|
|
password: {get_param: ManilaPassword}
|
|
host: {get_param: [EndpointMap, MysqlInternal, host]}
|
|
path: /manila
|
|
query:
|
|
if:
|
|
- {get_param: EnableSQLAlchemyCollectd}
|
|
- read_default_file: /etc/my.cnf.d/tripleo.cnf
|
|
read_default_group: tripleo
|
|
plugin: collectd
|
|
collectd_program_name: manila
|
|
collectd_host: localhost
|
|
- read_default_file: /etc/my.cnf.d/tripleo.cnf
|
|
read_default_group: tripleo
|
|
manila::network::neutron::network_plugin_ipv6_enabled: {get_param: ManilaIPv6}
|
|
# Currently the address family parameters are mutually exclusive
|
|
manila::network::neutron::network_plugin_ipv4_enabled:
|
|
if: [{get_param: ManilaIPv6}, false, true]
|
|
manila::rpc_response_timeout: {get_param: ManilaRpcResponseTimeout}
|
|
service_config_settings:
|
|
mysql:
|
|
manila::db::mysql::password: {get_param: ManilaPassword}
|
|
manila::db::mysql::user: manila
|
|
manila::db::mysql::host: '%'
|
|
manila::db::mysql::dbname: manila
|