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

More options when working with override files #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Tremualin
Copy link

This will allow you to:

  • Have multiple override files

Example:
hibernate.overrides.yml
secrets.overrides.yml.aes

All the overrides in the files are merged together.
If the same property is specified in more than one file, there's no guarantee which one will be used.

Use case:
hibernate.overrides.yml contains the url of the database
secrets.overrides.yml.aes contains the password of the database.

the url can easily be modified while the password is still protected.

  • Use regexps in the override files:

Example:
dev.*:
hibernate:
connectionURL: url

All pods under dev have the same hibernate connection URL without need for duplication.

@opaugam
Copy link

opaugam commented Dec 7, 2015

oh ok - so you can do something like -o a.yml b.yml ?

@@ -29,6 +29,7 @@
from toolset.io import fire, run
from toolset.tool import Template
from yaml import YAMLError
import re
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you really need re ? can't you use regex using fnmatch ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fnmatch seems to work. Will update the pull request.

@Tremualin
Copy link
Author

Yes, -o a.yml b.yml works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants