169
edits
No edit summary |
No edit summary |
||
| Line 78: | Line 78: | ||
On the Juno's web page left side menu, '''click Identity >> Application Credentials'''''Italic text'', then click '''Create Application Credentials'''''Italic text''. This pops up a Creation window. You need to set a Name for the credential, all other entries are optional but we also recommend setting an expiration date for the credential. Note that the credentials are always linked to a ''user'' and cannot be a ''project'' credential without any owner. | On the Juno's web page left side menu, '''click Identity >> Application Credentials'''''Italic text'', then click '''Create Application Credentials'''''Italic text''. This pops up a Creation window. You need to set a Name for the credential, all other entries are optional but we also recommend setting an expiration date for the credential. Note that the credentials are always linked to a ''user'' and cannot be a ''project'' credential without any owner. | ||
Once you are happy with the Name, click '''Create Application Credential'''''Italic text''. This pups up a window with the credential ID and its secret. You can copy that information, but downloading the < | Once you are happy with the Name, click '''Create Application Credential'''''Italic text''. This pups up a window with the credential ID and its secret. You can copy that information, but downloading the <code>clouds.yaml</code> file is more convenient. | ||
That file will need some minimal modification to be usable. | That file will need some minimal modification to be usable. | ||
| Line 97: | Line 97: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
You need to replace the < | You need to replace the <code>OpenStack</code> key with a unique name <code><cred reference></code>; it could be the project name or the credential name, you pick. | ||
The first time you create the credentials, you will need to copy the full file here: | The first time you create the credentials, you will need to copy the full file here: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
mkdir ~/.config/openstack/ | mkdir ~/.config/openstack/ | ||
| Line 105: | Line 106: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
But if you already have credentials in place, only change the <code>OpenStack</code> key with <code><cred reference></code> and copy that whole block in your current <code>~/.config/openstack/cloud.yaml</code> file. | |||
Then the | |||
Then the credentials can be used by setting the <code>OS_CLOUD</code> env var in your session or by using the <code>--os-cloud</code> client flag. For example to list all the networks in your project: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
| Line 115: | Line 118: | ||
# or | # or | ||
openstack --os-cloud <cred reference> network list | openstack --os-cloud <cred reference> network list | ||
</syntaxhighlight> | |||
===Use your Username and Password=== | ===Use your Username and Password=== | ||
| Line 122: | Line 126: | ||
[[File:Get openstack rc file.gif|caption|frame|none| the RC file from the Juno website]] | [[File:Get openstack rc file.gif|caption|frame|none| the RC file from the Juno website]] | ||
Let’s say that we have saved the files here <code> $HOME/id/myproject-openrc.sh.</code> | |||
You can test the connection by listing all the images made available on the platform that can be used out of the box to start VMs. | You can test the connection by listing all the images made available on the platform that can be used out of the box to start VMs. | ||
edits