-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Cannot customize deploymentclient.conf
#394
Comments
deployment.conf
Nothing happens because there is no What are you trying to do? It seems like This module can already manage the replacement files, |
deployment.conf
deploymentclient.conf
@kenyon, my apologies, it is not Why is there no Shouldn't we be able to manage that file's content? That is why I am suggesting to add what I have shared in the description. |
What you describe is just not the configuration pattern that this modules has implemented. I suppose it could be enhanced to work that way, if you want to create a pull request for this. The way it is currently designed to work is shown here; https://github.com/voxpupuli/puppet-splunk/blob/master/README.md#usage You would declare virtual
|
Thank you. I submitted a PR: #395 |
This module already can manage the config file, you just have to use it the way it was intended. |
Would you be able to tell me what I am missing, then?
|
@thierry-thierry you need to declare virtual resources, with the @splunkforwarder_deploymentclient { $name:
section => $options['section'],
setting => $options['setting'],
value => $options['value'],
tag => 'splunk_forwarder',
} |
Does this mean that the module is not intended for use with hiera? I am using the module with hiera and have yet to figure out how to manage
I have also tried:
It just does not do anything, which I understand, since the variable The following code works without modifying the module, for
I'm sorry if I am missing anything obvious here, but I don't see any way, without modifying the module, to manage the I'd be happy to figure out what I am missing and manage it without touching the module. Thank you. |
I think if you want to use it with hiera like that, without modifying the module, you would use a wrapper/profile class. Your PR #395 seems like a reasonable enhancement too though. It just needs some work to get the checks to pass. |
How to reproduce:
When trying to customize
deploymentclient.conf
with the following code, nothing happens:What behaviour did you expect instead
deploymentclient.conf
should be written with the following:Any additional information you'd like to impart
I have not figured out how to configure
deploymentclient.conf
with the way the module works right now, but was able to edit the module to allow configuringdeploymentclient.conf
.This could be done by adding the following code:
manifests/forwarder/config.pp
L70manifests/forwarder.pp
L117manifests/forwarder.pp
L198manifests/params.pp
L283The text was updated successfully, but these errors were encountered: