-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix so repo download occurs before install, need to anchor #9
Conversation
@msimonin Have you had a chance to look at this PR, we have issues deploying cassandra without it |
Hi @serenakeating, I'll do it soon. |
👍 i am experiencing this issue when testing with the |
Anchoring seems a reasonnable way to do it. |
@@ -19,6 +19,8 @@ | |||
key => $key_id, | |||
key_source => $gpgkey, | |||
pin => $pin, | |||
before => Anchor['cassandra::repo::end'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we write :
before => Package['dsc']
to force the source list to be updated before the package installation ?
Hi, @msimonin, I've been working with @serenakeating on this change. I hope this comment helps answer your question and allows us to get closer to fixing the ordering issue. TLDR; Both options are fine! I prefer containment. I'll just try and discuss the two solutions a bit. Hopefully you'll understand the differences and be able to choose. First, the proposed containment solution. In
By containing This means that in the future, you can add additional assertions about the order of Now, for the In
This assertion isn't actually honoured at all, since all of the resources Without containment, maintainers will probably need to remember not to depend on We then ask
This introduces a coupling between If you go for this, I would suggest that you remove the assertion:
Having said all that, which option would you prefer to merge? We'll change the Pull Request to suit. EDIT: Regarding class design issues like the coupling, I think R.I.Pienaar explains these issues much better than I could here: https://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php |
@yeungda you convinced me :) |
fix so repo download occurs before install, need to anchor
Btw I'm interesting in using pythos. Is there a manifest that I can use ? |
As far as I know there is not a public one, we ended up writing our own. Though not sure if we can opensource it as it was for the company I work for. There are some manifests in the excscale github project but they are more for cassandra. It was very simple though, install the package, run the service and configure the /etc/pithos/pithos.yaml via an pithos.yaml.erb file which I just copied and parameterised. The only extra thing I had to do was initalise the schemas: |
see my issue raised for more details