osc config clouds add
Add a cloud entry built from an application credential.
Reads the JSON printed by osc identity user application-credential create -o json from stdin and merges a ready-to-use cloud entry into clouds.yaml (or, with –split, the credential secret into secure.yaml). The entry inherits the settings of the cloud selected with --os-cloud, which is required here (auth_url, region, TLS and any other option); of its auth block only auth_url is kept. No authentication is performed.
An existing target file is edited in place: the new entry is spliced in and everything else (comments, &anchor/<<: *anchor merge keys, formatting) is left byte-for-byte as it was.
Usage: osc config clouds add [OPTIONS]
Options:
-
--cloud-name <CLOUD_NAME>— Name of the cloud entry to add. Letters, digits,.,_and-onlyDefault value:
openstack -
--file <PATH>— Target clouds.yaml path. Defaults to--os-client-config-file, else the discovered standard clouds.yaml, else$XDG_CONFIG_HOME/openstack/clouds.yaml -
--split— Write the credential secret into a separate secure.yaml instead of clouds.yaml; the credential id stays in clouds.yaml -
--overwrite— Update an existing cloud entry of the same name.The credential and the settings this command manages are replaced; any other key you have set on the entry by hand (e.g.
interface,cacert) is kept, as are all comments in the file.An entry of the same name in secure.yaml counts too, as it is merged over clouds.yaml on load. Without –split its old credential is removed from there, so the one written to clouds.yaml takes effect.