6033b71d5e
Glance role copies glance-image-import.conf when enabled to allow configuration of glance interoperable image import. Property protection can be enabled and file is copied. Change-Id: I5106675da5228a5d7e630871f0882269603e6571 Closesl-Bug: #1889272 Signed-off-by: nikparasyr <nik.parasyr@protonmail.com>
66 lines
2.3 KiB
Django/Jinja
66 lines
2.3 KiB
Django/Jinja
{
|
|
"command": "glance-api",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/glance-api.conf",
|
|
"dest": "/etc/glance/glance-api.conf",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
}{% if glance_policy_file is defined %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ glance_policy_file }}",
|
|
"dest": "/etc/glance/{{ glance_policy_file }}",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
}{% endif %}{% if glance_backend_ceph | bool %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ ceph_glance_keyring }}",
|
|
"dest": "/etc/ceph/{{ ceph_glance_keyring }}",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/ceph.conf",
|
|
"dest": "/etc/ceph/ceph.conf",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
}{% endif %}{% if glance_backend_swift | bool %},
|
|
{
|
|
"source": "{{ container_config_directory }}/glance-swift.conf",
|
|
"dest": "/etc/glance/glance-swift.conf",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
}{% endif %}{% if enable_glance_image_cache | bool %},
|
|
{
|
|
"source": "{{ container_config_directory }}/glance-cache.conf",
|
|
"dest": "/etc/glance/glance-cache.conf",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
}{% endif %}{% if glance_enable_interoperable_image_import | bool %},
|
|
{
|
|
"source": "{{ container_config_directory }}/glance-image-import.conf",
|
|
"dest": "/etc/glance/glance.conf.d/glance-image-import.conf",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
}{% endif %}{% if glance_enable_property_protection | bool %},
|
|
{
|
|
"source": "{{ container_config_directory }}/property-protections-rules.conf",
|
|
"dest": "/etc/glance/property-protections-rules.conf",
|
|
"owner": "glance",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/lib/glance",
|
|
"owner": "glance:glance",
|
|
"recurse": true
|
|
},
|
|
{
|
|
"path": "/var/log/kolla/glance",
|
|
"owner": "glance:glance",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|