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 the ability to manage the xinetd.d conf dir #47

Merged
merged 1 commit into from Feb 6, 2015

Conversation

claytono
Copy link
Contributor

@claytono claytono commented Feb 5, 2015

If enabled, then the xinet.d confdir will be purged of any unmanaged
files.

@@ -19,6 +19,7 @@
$service_status = $xinetd::params::service_status,
$service_hasrestart = $xinetd::params::service_hasrestart,
$service_hasstatus = $xinetd::params::service_hasstatus,
$manage_confdir = false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you rename this to purge_confdir? Because even if this is false, it is still being managed.

If enabled, then the xinet.d confdir will be purged of any unmanaged
files.
@claytono
Copy link
Contributor Author

claytono commented Feb 5, 2015

Rebased and updated the parameter name.

mode => '0755',
ensure => directory,
mode => '0755',
recurse => $purge_confdir,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not liking the ability for recurse => true here. Would it still work for you if only purge was set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's there only because the Type Reference specifically says that purge => true only really makes sense with recurse => true. I didn't really think about it past that. What is the concern?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, purge => true only works with recurse => true. Perhaps you were thinking of a file resource with a source of a remote directory and recurse => true being slow?

Copy link
Contributor

Choose a reason for hiding this comment

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

ahhh, yeah, that's it. Apologies on the confusion!

hunner added a commit that referenced this pull request Feb 6, 2015
Add the ability to manage the xinetd.d conf dir
@hunner hunner merged commit d40229e into puppetlabs:master Feb 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants