Allow access to more clouds files

There are more options to specify a clouds.yaml file:

a) the file can end with .yml, .yaml or .json
b) the file can be located in the user home dir or in /etc/openstack

So allow read-only access to /etc/openstack and ~/.config/openstack/ .

See
https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/config/loader.py#L49

Change-Id: I84276ff4b12acc5f4ac5092580bb0e652d518e54
(cherry picked from commit 528db56bbcd0bd57916ae97b1cfc3d6f548b721a)
This commit is contained in:
Thomas Bechtold 2020-12-22 16:02:08 +01:00 committed by James Page
parent c21693547c
commit 2f48861d20

View File

@ -17,10 +17,14 @@ grade: stable
base: core18 base: core18
plugs: plugs:
dot-config-openstack-clouds-yaml: dot-config-openstack:
interface: personal-files interface: personal-files
read: read:
- $HOME/.config/openstack/clouds.yaml - $HOME/.config/openstack
etc-openstack:
interface: system-files
read:
- /etc/openstack
apps: apps:
openstack: openstack:
@ -29,7 +33,8 @@ apps:
plugs: plugs:
- network - network
- home - home
- dot-config-openstack-clouds-yaml - dot-config-openstack
- etc-openstack
- ssh-public-keys - ssh-public-keys
glance: glance:
command: bin/glance command: bin/glance