feat: add OpenStack clouds.yaml and OS_* env var support#236
Merged
Conversation
Add support for OpenStack's standard clouds.yaml client configuration file and OS_* environment variables, following the upstream openstacksdk precedence order: 1. kitchen.yml (explicit driver config always wins) 2. OS_* environment variables (override clouds.yaml) 3. clouds.yaml merged with secure.yaml (base configuration) The driver reads clouds.yaml from standard search paths and maps entries to Fog OpenStack config keys. Standard OS_* env vars (OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, etc.) are also recognized so that sourcing an openrc file works without duplicating values in kitchen.yml. New driver config options: - openstack_cloud: selects a cloud entry (falls back to OS_CLOUD) - clouds_yaml_path: explicit path to a clouds.yaml file Closes #212 Signed-off-by: Lance Albertson <lance@osuosl.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for OpenStack's standard clouds.yaml client configuration
file and OS_* environment variables, following the upstream openstacksdk
precedence order:
The driver reads clouds.yaml from standard search paths and maps entries
to Fog OpenStack config keys. Standard OS_* env vars (OS_AUTH_URL,
OS_USERNAME, OS_PASSWORD, etc.) are also recognized so that sourcing an
openrc file works without duplicating values in kitchen.yml.
New driver config options:
Closes #212
Signed-off-by: Lance Albertson lance@osuosl.org
Description
Please describe what this change achieves
Issues Resolved
List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant
Type of Change
Our release process assumes you are using Conventional Commit messages.
The most important prefixes you should have in mind are:
_fix_: which represents bug fixes, and correlates to a SemVer patch._feat_: which represents a new feature, and correlates to a SemVer minor._feat!_:, orfix!:,refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a major version change.If you have not included a conventional commit message this can be fixed on merge.
Check List