3451c1c498
Drop generation of upstart override file and /etc/environment and scrub any existing charm configuration in these locations from an existing install. These where required way back in the dawn of time when ceph support was alpha/beta in cinder. Provide backend specific configuration file path, allowing multiple ceph clusters to be used with a single cinder application. Change-Id: I7adba0d35fb7406afa40f047b79a9ab51a6a333d Closes-Bug: 1769196
38 lines
868 B
Plaintext
38 lines
868 B
Plaintext
{% if sections and 'DEFAULT' in sections -%}
|
|
{% for key, value in sections['DEFAULT'] -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor %}
|
|
{%- endif %}
|
|
|
|
{% if backends -%}
|
|
enabled_backends = {{ backends }}
|
|
{%- endif %}
|
|
|
|
{% for section in sections -%}
|
|
{% if section != 'DEFAULT' -%}
|
|
[{{ section }}]
|
|
{% for key, value in sections[section] -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{%- endfor %}
|
|
|
|
{% if sectional_default_config -%}
|
|
{% if volume_driver -%}
|
|
[LVM]
|
|
volumes_dir = {{ volumes_dir }}
|
|
volume_name_template = {{ volume_name_template }}
|
|
volume_group = {{ volume_group }}
|
|
volume_driver = {{ volume_driver }}
|
|
volume_backend_name = {{ volume_backend_name }}
|
|
{% endif -%}
|
|
{% if rbd_pool -%}
|
|
[CEPH]
|
|
rbd_pool = {{ rbd_pool }}
|
|
host = {{ host }}
|
|
rbd_user = {{ rbd_user }}
|
|
volume_driver = {{ ceph_volume_driver }}
|
|
rbd_ceph_conf = {{ rbd_ceph_conf }}
|
|
{% endif %}
|
|
{% endif %}
|