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 support for purging unmanaged config fragments #43

Merged
merged 2 commits into from
Jan 18, 2017
Merged

Add support for purging unmanaged config fragments #43

merged 2 commits into from
Jan 18, 2017

Conversation

cosmopetrich
Copy link
Contributor

As suggested by @joshuaspence in #39.

This defaults to disabled to ease migration from previous versions.

I've taken a slightly different approach to #2, in that I've decoupled the parameter names from 'inputs' since conf.d directory could foreseeably be used for outputs and filters. I'm more than happy to change the names etc if you'd prefer different ones.

Please let me know your thoughts, and thanks for all your work on this module!

group => 'telegraf',
notify => Class['::telegraf::service'],
require => Class['::telegraf::install'],
file {
Copy link
Member

Choose a reason for hiding this comment

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

Nice, I was wondering when some Puppet 4 syntax would finally creep in ;)

This is great, but you'll need to update the module's metadata to state this as a requirement. I'll then call it out as a breaking change in version 2.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry, I didn't even think about that when I was writing it. I'm happy to modify it so that it'll work on older Puppets.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, probably a good idea to maintain compatibility with older versions of Puppet for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. I've repeated the parameters on each file than using File {} to avoid scope-related weirdness, however unlikely.

Cosmo Petrich added 2 commits January 19, 2017 10:22
This currently defaults to disabled to ease migration from previous
versions.
This doesn't rely on File {} defaults to avoid potential scope
weirdness, however unlikely.
@yankcrime
Copy link
Member

Thanks @cosmopetrich !

@yankcrime yankcrime merged commit f617cd5 into voxpupuli:master Jan 18, 2017
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.

2 participants