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

Autorequire Package['mercurial'] #262

Merged
merged 1 commit into from
Sep 17, 2015
Merged

Autorequire Package['mercurial'] #262

merged 1 commit into from
Sep 17, 2015

Conversation

mpdude
Copy link

@mpdude mpdude commented Aug 15, 2015

Along the lines of 2b19075, if the
Mercurial package is being managed, it stands to reason that the Mercurial
package should be installed before trying to potentially manage Mercurial
repositories using vcsrepo resources.

This commit adds an autorequire to the vcsrepo type that reflects the
above premise.

Along the lines of 2b19075, if the
Mercurial package is being managed, it stands to reason that the Mercurial
package should be installed before trying to potentially manage Mercurial
repositories using vcsrepo resources.

This commit adds an autorequire to the vcsrepo type that reflects the
above premise.
@DavidS
Copy link

DavidS commented Aug 28, 2015

Is the mercurial package called 'mercurial' on all platforms? I guess we're not worse off, if it doesn't...

@DavidS
Copy link

DavidS commented Aug 28, 2015

Thinking more about this, I realize that this is very suboptimal in general, as the "real" requirements are provider dependent, something that is usually hard, but in vcsrepo's case there should always be a provider available on the master. Would you mind having a look into that?

@mpdude
Copy link
Author

mpdude commented Aug 28, 2015

Sorry, I don't understand what you're talking about... :-(

@DavidS
Copy link

DavidS commented Aug 28, 2015

vcsrepo instances managing a git resource should not autorequire mercurial, and vcsrepo instances managing mercurial repos should not autorequire git.

DavidS added a commit that referenced this pull request Sep 17, 2015
Autorequire Package['mercurial']
@DavidS DavidS merged commit 279be07 into puppetlabs:master Sep 17, 2015
@DavidS
Copy link

DavidS commented Sep 17, 2015

merged. It is a net win after all. Thanks for your patience!

@igalic
Copy link

igalic commented Sep 21, 2015

can't we autorequire stuff in the provider?

@DavidS
Copy link

DavidS commented Sep 21, 2015

I wouldn't know how. But I also have not looked into it in-depth.

Maybe something like Package <|title=='git'|> -> Vcsrepo <| provider == 'git' |> ? this could then also access params fwiw.

@igalic
Copy link

igalic commented Sep 21, 2015

and where would that go? init.pp?

@DavidS
Copy link

DavidS commented Sep 21, 2015

that is another difficult question.

cegeka-jenkins pushed a commit to cegeka/puppet-vcsrepo that referenced this pull request Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants