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

Rely on autorequires of files when using concat #1003

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

traylenator
Copy link
Contributor

Pull Request (PR) description

Previously all the concat's created typically in /etc/collect.d were subject to

File['collectd.d'] -> Concat <| tag == 'collectd' |>
to ensure the directory was in place first.

This turns out to be too greedy and can cause problems as per #1000.

This declaration is unnecessary as concat creates a file type
and this auto-requires the directory one level above.

This Pull Request (PR) fixes the following issues

Fixes #1000

Previously all the concat's created typically in /etc/collect.d were subject to

File['collectd.d'] -> Concat <| tag == 'collectd' |>
to ensure the directory was in place first.

This turns out to be too greedy and can cause problems as per voxpupuli#1000.

This declaration is unnecessary as concat creates a file type
and this auto-requires the directory one level above.
@traylenator
Copy link
Contributor Author

Test failures are unrelated to this MR.

@traylenator traylenator added the bug Something isn't working label Sep 2, 2022
Copy link
Member

@smortex smortex left a comment

Choose a reason for hiding this comment

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

LGTM

@smortex smortex merged commit 261641d into voxpupuli:master Sep 2, 2022
@traylenator traylenator deleted the newrequire branch September 5, 2022 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File['collectd.d'] -> Concat <| tag == 'collectd' |> is too greedy
3 participants