-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
The Road to 1.0: Cleanup part 1 #423
Conversation
… road-to-1.0 Conflicts: Puppetfile manifests/resource/geo.pp manifests/resource/location.pp manifests/resource/map.pp manifests/resource/upstream.pp manifests/resource/vhost.pp
I like the direction this is going, couple of high-level comments so far:
I'll have a closer look over the next few days and try and get the tests working to see what's busted. |
@jfryman I've got the tests working. Do you want me to submit a PR to merge to this branch, or just commit directly? I don't have any other comments on the PR other than what I mentioned above (which after looking more closely at the proposed changes all still stand); there are a number other minor issues that I didn't address in my test-related fixes but a detailed review can come later. |
@3flex go ahead and commit directly to this branch. Let's do it in one transaction. |
@3flex great questions. Let's go through them.
Agreed. My objective here is to move around the module internals as-is, and start cleaning up the actual data to match with upstream defaults.
Agreed. Again, module internals only. I'd like a user to be able to provide a compiled template for any of the resources offered in the event that someone strays too far off the beaten path. Our end target should be to accomplish 80% with this module, and then let folks get crazy if need be.
Let's audit these in another pull and see what we can reasonably get rid of.
Couldn't agree more. This should be a toggle. Too many options to mess with right now on the part of the user. So, this pull does not represent making it to 1.0. Instead, it really is just some cleanup internally to make it easier to extract things. But, you bring up an interesting point.
Yes, and no. What needs to happen here is in two phases. The first is the deprecation warning for the old resources. Users will be notified that the old My only concern is that I might be too aggressive with the I'll be hacking more this weekend, hopefully landing this thing. :) |
Yeah, if it's purely internals then I'd keep I'd also either leave So you could leave I might push an update to the tests in this branch so that what I'd expect to still work based on an "internals only" philosophy gets flagged if it's broken. |
Going to close this and take another pass tomorrow. This was a good Mikado, and good discussion. |
I have been thinking for some time it's long overdue to clean up this module. Chief complaints include:
params.pp
nginx::resources
namespace?Furthermore, there are a ton of bad things that have made it into the module that really shouldn't be there and may be causing unknown consequences:
vhost
andlocation
resources.So, I began the great slog to start working on this stuff. The journey of 1000 miles begins with the first step, right?
This PR covers a few starting items:
params.pp
. Introducespuppet_module_data
, and obliteratesparams.pp
completely. A good writeup of this can be found at http://www.devco.net/archives/2013/12/08/better-puppet-modules-using-hiera-data.phpresources
namespace. We will not get rid of these just yet, but once this lands, no new features will be added to the old resources.This PR does not pass tests yet, but it is far enough along where I can publish it for comments and help getting things cleaned up. Once this is merged, I will start looking for places where we can break out
vhost
andlocation
into more manageable chunks. Bonus points for anyone who helps clean this up. ❤️For any change on the way to v1.0, we will keep old interfaces intact for now. However, once we hit v1.0, you can and should expect things to change. I will do my best to keep it measured and make sure deprecation warnings are in place so you know what will be coming.
/cc @3flex