-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Warning unknown variable 'staged_package' when yum
is used as package provider
#169
Comments
Hi, thanks for rising this bug. Interesting that it is unknown. I am not quite sure how that is possible. Do you call any other class of the splunk module as well? |
I only use this class since we only install the splunk forwarder. |
@TraGicCode can you take a look please? Any idea? |
@bastelfreak I'm actually noticing this on my puppetserver as well ( which is ubuntu ). We should be able to throw together some rspec-puppet tests to reproduce this and hopefully pinpoint and fix the bug. Unfortunately i cannot look at this at the moment as things are very very busy for me with work since we have a huge migration project. I can try and look at this when i get the chance. |
It looks like the cause of this is seems to be happening in this giant mess. puppet-splunk/manifests/forwarder.pp Lines 75 to 95 in 26d93ae
This whole mess really need to be cleaned up. Also inside the params.pp there is some code that really bothers me. It's trying to pick the default package provider based on the node's o/s family fact. This should work on deciding the "default" should be done automatically by the package provider implementations provided by puppet. puppet-splunk/manifests/params.pp Lines 195 to 200 in 26d93ae
Summary: There needs to be a refactoring done to unravel this mess and prevent this fragile stuff from breaking in the future. |
Just to add, the only way I could get Windows to actually install was like so:
I wanted to use Chocolatey but didn't actually seem possible given the conditions in module. The above forced |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Puppet gives the following warning:
What behaviour did you expect instead
No warning.
Output log
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: