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

feature: only clone if branch/tag/commit exists #9

Closed
Z3po opened this issue Feb 4, 2016 · 1 comment
Closed

feature: only clone if branch/tag/commit exists #9

Z3po opened this issue Feb 4, 2016 · 1 comment

Comments

@Z3po
Copy link

Z3po commented Feb 4, 2016

It would be cool additional to feature #6 bringing linking support to puppet environments to have the possibility to specify in the puppetfile to ignore checkout errors.
That could mean something like

mod 'site',
  :git => 'git@puppet-repo.server.lan:pomailcore/site.git',
  :branch => "mybranch",
  :ignore-unreachable => 'True'

Or combined with the new feature referenced:

mod 'site',
  :git => 'git@puppet-repo.server.lan:pomailcore/site.git',
  :link => 'True',
  :ignore-unreachable => 'True'

That causes all you puppetfiles in all environments to look the very same.
Now if you're working on a module and want to test these changes e.g. in your "QA" stage, you could branch the specific git repository to the branch "QA" and after triggering g10k it's available within the environment, without the need to manually specify any new versions through your Puppetfile.

Now it's not necessary anymore to keep all branches in all GIT Repositories "available" but just create them, once you need them.

@xorpaul
Copy link
Owner

xorpaul commented Feb 26, 2016

added ignore-unreachable parameter for GIT module with #14

@xorpaul xorpaul closed this as completed Feb 26, 2016
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