diff --git a/config.yaml b/config.yaml index 9cf81c8..80d729c 100644 --- a/config.yaml +++ b/config.yaml @@ -131,3 +131,11 @@ options: LIF through which the share is exported. A Vserver static route is configured using this gateway. default: "172.16.31.1" + goodness-function: + type: string + description: | + Specify an optional goodness function (as a string) that will be + run against the backend to determine its goodness score for scheduling. + Please refer to the Manila documentation for the function structure, + valid operands and operators. + default: "" diff --git a/templates/queens/manila.conf b/templates/queens/manila.conf index 2438051..438dcee 100644 --- a/templates/queens/manila.conf +++ b/templates/queens/manila.conf @@ -11,7 +11,9 @@ netapp_transport_type = {{ options.transport_type }} netapp_server_port = {{ options.netapp_server_port }} backend_availability_zone = {{ options.backend_availability_zone }} netapp_aggregate_name_search_pattern = {{ options.aggregate_name_search_pattern }} - +{% if options.goodness_function %} +goodness_function = "{{ options.goodness_function }}" +{% endif %} {%- if options.driver_handles_share_servers %} netapp_root_volume_aggregate = {{ options.root_volume_aggregate_name }} netapp_root_volume_name = {{ options.root_volume_name }}