@@ -54,14 +54,15 @@ The easiest way to configure your client is via `clouds.yaml`.
54
54
55
55
``` yaml title="$HOME/.config/openstack/clouds.yaml"
56
56
clouds :
57
- understack :
57
+ my-site :
58
58
auth_type : v3websso
59
59
identity_provider : sso
60
60
protocol : openid
61
61
auth :
62
62
auth_url : {{ config.extra.auth_url }}
63
63
project_domain_name : Default
64
64
project_name : myproject
65
+ region_name : {{ config.extra.region_name }}
65
66
` ` `
66
67
67
68
<!-- markdownlint-capture -->
@@ -75,14 +76,14 @@ With the above configuration in `$HOME/.config/openstack/clouds.yaml` you
75
76
will be able to run the OpenStack CLI as follows :
76
77
77
78
` ` ` bash
78
- openstack --os-cloud understack <sub-command-here>
79
+ openstack --os-cloud my-site <sub-command-here>
79
80
` ` `
80
81
81
82
Or you can set the `OS_CLOUD` environment variable once and shorten the
82
83
command as follows :
83
84
84
85
` ` ` bash
85
- export OS_CLOUD=understack
86
+ export OS_CLOUD=my-site
86
87
openstack <sub-command-here>
87
88
` ` `
88
89
@@ -115,19 +116,20 @@ Note the auth_type and auth options are slightly different than in the above SSO
115
116
116
117
` ` ` yaml title="$HOME/.config/openstack/clouds.yaml"
117
118
clouds:
118
- understack-application :
119
+ my-site-app :
119
120
auth_type: v3applicationcredential
120
121
auth:
121
122
auth_url: {{ config.extra.auth_url }}
122
123
application_credential_id: ${FROM_ABOVE}
123
124
application_credential_secret: ${FROM_ABOVE}
125
+ region_name: {{ config.extra.region_name }}
124
126
` ` `
125
127
126
128
The `openstack` cli, `terraform` and `ansible` can all use application credentials and
127
129
the `OS_CLOUD` environment variable :
128
130
129
131
` ` ` bash
130
- export OS_CLOUD=understack-application
132
+ export OS_CLOUD=my-site-app
131
133
` ` `
132
134
133
135
There are a number of additional features and options available in the OpenStack documentation :
0 commit comments