Define configuration files

Registered by Joe Harrison

Define the location and contents of the configuration directory in the user's home directory. It contains all configuration files used by OpenStackClient.

This directory is not necessarily for the exclusive use of OpenStackClient. It contains configuration information that may be useful to other applications and should be in a standard location.

An OpenStackClient configuration file provides:
* low-priority default values for environment variables and global command-line options
* definitions for multiple cloud/credential configurations that can be referenced by name in a command

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
Dean Troyer
Direction:
Needs approval
Assignee:
Dean Troyer
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon m9
Started by
Dean Troyer
Completed by
Dean Troyer

Related branches

Sprints

Whiteboard

[Cache components of the BP are now in https://blueprints.launchpad.net/python-openstackclient/+spec/local-cache]

Config File
* location: XDG_CONFIG_HOME/openstack aka ~/.config/openstack on most distros defaults
  * XDG basedir spec: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
* name: clouds.yaml
* contents:
  * cloud configurations that include multiple keystone endpoints to be used, different usernames and projects (similar in behaviour to the OpenSSH client configuration ~/.ssh/config)
  * supports multiple cloud definitions

Much of this can be realized by using https://git.openstack.org/cgit/stackforge/os-client-config: config file format is yaml, multiple named cloud support included, initial implementation is in https://review.openstack.org/#/c/129795/

(?)

Work Items

Work items:
define config file format: DONE
implement config file support: DONE
implement named cloud config support: DONE
remove keyring from OSC: DONE

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.