If you manage a big OpenStack cloud, you may find yourself in a situation with a lot of entries in your clouds.yaml file.
The problem is that you need to configure a separate cloud for each project.
Moreover, they multiplied by the count of regions in your deployment.
The cloudsyaml
package, which provides simple clouds
utility will simplify exploring such a yaml-based database.
$ clouds list
admin
octavia
octavia-testos
$ clouds list --grep octavia --grep testos
octavia-testos
$ clouds list --eval
export OS_CLOUD=admin
export OS_CLOUD=octavia
export OS_CLOUD=octavia-testos
$ clouds show admin
admin:
auth:
auth_url: https://cloud.example.com:5000
password: '******'
project_domain_name: Default
project_name: admin
user_domain_name: Default
username: admin
identity_api_verion: '3'
region_name: SPB
$ clouds files
+-------------+--------------------------------------------------+
| name | path |
+-------------+--------------------------------------------------+
| clouds.yaml | /Users/igor.tiunov/.config/openstack/clouds.yaml |
| secure.yaml | /Users/igor.tiunov/.config/openstack/secure.yaml |
+-------------+--------------------------------------------------+