Add config-flags option
As per the bug report, add config-flag paramiter to config.yaml to add desired options to the DEFAULT section of manila.conf Closes-Bug: #1952320 Change-Id: If1a314119c59212f4fb885ef9af411d1ab05b1e2
This commit is contained in:
parent
5a9f6d9bad
commit
f2ab722fe8
@ -76,3 +76,10 @@ options:
|
||||
description: |
|
||||
A comma-separated list of nagios servicegroups. If left empty, the
|
||||
nagios_context will be used as the servicegroup
|
||||
config-flags:
|
||||
type: string
|
||||
default: ""
|
||||
description: |
|
||||
Setting multiple arbitrary configuration variable for manila.conf file.
|
||||
Any configuration paramiters is comma-separated.
|
||||
Zero or one spaces are allows between tokens.
|
||||
|
@ -28,6 +28,10 @@ debug = {{ options.debug }}
|
||||
# Number of workers for OpenStack Share API service. (integer value)
|
||||
osapi_share_workers = {{ options.workers }}
|
||||
|
||||
{% for key, value in options.user_config_flags.items() -%}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor -%}
|
||||
|
||||
[cors]
|
||||
|
||||
#
|
||||
@ -81,3 +85,4 @@ osapi_share_workers = {{ options.workers }}
|
||||
{% for line in options.computed_backend_lines_manila_conf %}
|
||||
{{ line }}
|
||||
{%- endfor %}
|
||||
|
||||
|
@ -30,6 +30,10 @@ osapi_share_workers = {{ options.workers }}
|
||||
|
||||
{% include "parts/section-transport-url" %}
|
||||
|
||||
{% for key, value in options.user_config_flags.items() -%}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor -%}
|
||||
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/manila
|
||||
|
||||
@ -82,3 +86,4 @@ lock_path = /var/lib/manila
|
||||
{% for line in options.computed_backend_lines_manila_conf %}
|
||||
{{ line }}
|
||||
{%- endfor %}
|
||||
|
||||
|
@ -30,9 +30,14 @@ osapi_share_workers = {{ options.workers }}
|
||||
|
||||
{% include "parts/section-transport-url" %}
|
||||
|
||||
{% for key, value in options.user_config_flags.items() -%}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor -%}
|
||||
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/manila
|
||||
|
||||
|
||||
[cors]
|
||||
|
||||
#
|
||||
@ -82,3 +87,4 @@ lock_path = /var/lib/manila
|
||||
{% for line in options.computed_backend_lines_manila_conf %}
|
||||
{{ line }}
|
||||
{%- endfor %}
|
||||
|
||||
|
@ -30,6 +30,10 @@ osapi_share_workers = {{ options.workers }}
|
||||
|
||||
{% include "parts/section-transport-url" %}
|
||||
|
||||
{% for key, value in options.user_config_flags.items() -%}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor -%}
|
||||
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lib/manila
|
||||
|
||||
@ -82,3 +86,4 @@ lock_path = /var/lib/manila
|
||||
{% for line in options.computed_backend_lines_manila_conf %}
|
||||
{{ line }}
|
||||
{%- endfor %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user