-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
@collectd_version not work in Plugin templates #377
Comments
Hi,
The problem is that the content of the generated config file is:
but the correct content should be:
Following @azhurbilo indications, I've tested both approaches:
and both "worked for me"™ (tested in versions 5.4.1 and 5.5.0) but no PR possible because of the failed tests. If anyone want to try: |
Sorry, I didn't notice there is already the PR #374 with the first approach. |
This seems to have been closed. |
@jyaworski, looks like PR #393 |
collectd_version is now a fact, and should be universally available. |
yes, but this fact is available only on second puppet apply (when collectd package installed). |
#398 #305 and others all point to this problem, and I have an idea for a solution. Thinking about @azhurbilo's suggestion, I propose we set a conservative Would that solve this? |
Hello: Look at #412 please. |
Closing due to #412 fixing this. Please re-open if it doesn't. |
@collectd_version not work in Plugin templates as @ means local scope.
Now all tests works only because of it's hardcoded collectd_version as fact!
https://github.com/azhurbilo/puppet-collectd/blob/master/templates/plugin/cpu.conf.erb#L1
Should looks like
Or add "collectd_version" variable to manifests/plugin.pp
The text was updated successfully, but these errors were encountered: