-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
File['collectd.d'] -> Concat <| tag == 'collectd' |> is too greedy #1000
Comments
Infuriatingly File['collectd.d'] -> Concat <| tag == 'collectd' and path > '/etc/collectd.d/' |> does not work , only |
I wonder if using the |
traylenator
added a commit
to traylenator/puppet-collectd
that referenced
this issue
Sep 1, 2022
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. Instead be explicit about requiring the directory on the concat files that are bing created. Consequence of this if concat files are being created in `/etc/collect.d` outside this module they will now have to require this directory. At worst such configuration would require a second puppet run.
traylenator
added a commit
to traylenator/puppet-collectd
that referenced
this issue
Sep 2, 2022
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
added a commit
to traylenator/puppet-collectd
that referenced
this issue
Sep 2, 2022
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Circular dependency
The yum::versionlock is incorrectl matched by the
File['collectd.d'] -> Concat <| tag == 'collectd' |>
What behaviour did you expect instead
Not a circular dependency
The text was updated successfully, but these errors were encountered: