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

Virtual environments #117

Open
Woellchen opened this issue Oct 30, 2018 · 3 comments
Open

Virtual environments #117

Woellchen opened this issue Oct 30, 2018 · 3 comments

Comments

@Woellchen
Copy link

assume you have multiple puppet modules that you share with others and one "project" module that implements project-level specific logic.
you do not have a real control repository but rather your project module is your control repo as well.
you have the following branches in your project module: master, feature1
now one of the shared modules has another branch, say feature2 and you want to test feature2 without touching your own module. how would you do that? it is currently not possible
to ease the development and testing workflow in such cases i want to introduce a new feature, lets call it virtual environments

whenever g10k detects branches in modules that are not in your control repo, it should create an environment symlink to, say, master, or any configurable branch.
this could also be similar to how fallback works, it just puts files from a fallback branch (and does not use symlinks or whatever), but makes sure the environment exists.

i would like to have your opinion on that. for now this is just a rough idea

@xorpaul
Copy link
Owner

xorpaul commented Nov 13, 2018

Sure, I'm open to adding the feature!

I'm just confused as to how your project module that is also your control repo looks. Does it contain the Puppetfile?

I think it would be really helpful if you could create a Git repository here on GitHub of your idea / project repo, so that I could develop against that.

@Woellchen
Copy link
Author

thanks for reaching out to me!
in the meantime i have already developed an implementation for it that i would try to wrap up & test this week and then pull request to you
it is already running fine on some servers for some time
i think it will be much clearer then and we can see if you are fine with it :)

@xorpaul
Copy link
Owner

xorpaul commented Nov 13, 2018

Sounds good to me 😏

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

No branches or pull requests

2 participants