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

Add ability to specify hash of apt sources in hiera #192

Closed
wants to merge 2 commits into from

Conversation

dantremblay
Copy link

This patch uses create_resources() to call apt::source which lets you specify your sources in hiera.

ghoneycutt and others added 2 commits December 4, 2013 18:44
This patch uses create_resources() to call apt::source which lets you
specify your sources in hiera.
@ghoneycutt
Copy link

@apenney any ideas on why this is failing travis so hard? This patch works great for me with puppet 3.3.2 and ruby 1.8.7.

@daenney
Copy link

daenney commented Feb 25, 2014

I'm a bit on the fence about this one. On one hand I understand why you'd want to be able to do this, on the other hand you can already easily do this without us needing to support it in the module.

I'd certainly want to add an example like this to the README but I'm not convinced the module should handle this for you.

@ghoneycutt
Copy link

Every time you have a define, there should be a create_resources() that goes with it. This gives you the ability to specify a hash and use the define within Hiera. Without this functionality, defines require that I write puppet code, which would end up being a module that just had create_resources() to call the define.

In other words, this is a design pattern that has greatly simplified being able to define things in Hiera as opposed to writing more code or meta modules.

@@ -0,0 +1 @@
/home/dan/git/puppetlabs-apt

Choose a reason for hiding this comment

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

spec/fixtures/modules should not be in the commit and should be added to .gitignore

@daenney
Copy link

daenney commented Feb 26, 2014

In other words, this is a design pattern that has greatly simplified being able to define things in Hiera as opposed to writing more code or meta modules.

Hadn't considered that, good point.

The reasons the tests seem to have failed so explosively is because stdlib couldn't be found. I'm guessing it was a bug in the .travis.yaml back then or some other issue. Unfortunately I can't trigger the build.

@dantremblay: I'll push to get the feature in but your commit needs to:

  • Be rebased on master
  • Get those two symlinks out @ghoneycutt mentioned
  • Force-push the branch back out. This will trigger Travis too.

@ghoneycutt
Copy link

@daenney I went ahead and did this work and rebased Dan's commit in PR #249. Didn't think Dan would mine as we worked on this PR together.

@dantremblay can you please close this PR?

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.

4 participants