Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add local & global file locations with environment variables. #306

Merged
merged 1 commit into from
Dec 24, 2013

Conversation

fnichol
Copy link
Contributor

@fnichol fnichol commented Dec 24, 2013

Previous to this commit you could override the location of your
.kitchen.yml with the KITCHEN_YAML environment variable. For
example:

KITCHEN_YAML=Kitchen.yaml kitchen list

Now the local and global config file locations can also be overridden
with the following environment variables:

  • KITCHEN_LOCAL_YAML
  • KITCHEN_GLOBAL_YAML

The local override might be useful in a hosted CI environment where your
configuration overrides need to be added into your project repository.
You could therefore setup an environment variable such as:

KITCHEN_LOCAL_YAML=.kitchen.ci.yml

That wouldn't be used in day-to-day local development.

Thanks to @coderanger and @damm for the idea and use case.

Closes #304

Previous to this commit you could override the location of your
`.kitchen.yml` with the `KITCHEN_YAML` environment variable. For
example:

    KITCHEN_YAML=Kitchen.yaml kitchen list

Now the local and global config file locations can also be overridden
with the following environment variables:

* `KITCHEN_LOCAL_YAML`
* `KITCHEN_GLOBAL_YAML`

The local override might be useful in a hosted CI environment where your
configuration overrides need to be added into your project repository.
You could therefore setup an environment variable such as:

    KITCHEN_LOCAL_YAML=.kitchen.ci.yml

That wouldn't be used in day-to-day local development.

Thanks to @coderanger and @damm for the idea and use case.

Closes #304
fnichol added a commit that referenced this pull request Dec 24, 2013
Add local & global file locations with environment variables.
@fnichol fnichol merged commit 971bd72 into master Dec 24, 2013
@fnichol fnichol deleted the kitchen-local-yaml-envvar branch December 24, 2013 23:20
@test-kitchen test-kitchen locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override config file location via environment variables
1 participant