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

Support .conf files in non-standard locations #88

Closed
kpschuck opened this issue Feb 8, 2017 · 2 comments
Closed

Support .conf files in non-standard locations #88

kpschuck opened this issue Feb 8, 2017 · 2 comments

Comments

@kpschuck
Copy link

kpschuck commented Feb 8, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: All versions
  • Distribution: All distributions
  • Module version: All versions

How to reproduce (e.g Puppet code you use)

splunk_props { 'useless title':
  path    => '/opt/splunk/etc/master-apps/_cluster/local',  # <-- would like to be able to do this
  section => 'default',
  setting => 'defaultGroup',
  value   => 'splunk_9777',
}

What are you seeing

The resource types have hardcoded paths to the .conf files and do not allow for specifying a path.

What behaviour did you expect instead

Allowing the path to be specified on a per-resource basis would allow for management of index and search head clusters.

Specifically, I would like to be able to manage the index cluster config files located at /opt/splunk/etc/master-apps/_cluster/local on the cluster master.

Any additional information you'd like to impart

Is this something that this module could support? If so, what would be the recommended way to implement this?

I've gotten this working by declaring additional resource types (splunkmaster_indexes and splunkmaster_inputs) but it feels forced. I have not been successful in implementing a path property on the base type since it seems to be a limitation of puppetlabs-inifile.

@kpschuck
Copy link
Author

kpschuck commented Feb 8, 2017

Looks like I missed #87. Closing this in favor of discussion on the PR.

@kpschuck kpschuck closed this as completed Feb 8, 2017
@edt82
Copy link

edt82 commented Jun 2, 2017

Hi, trying to use this new setting as so in heira:

  myindex_homePath:
    section: myindex
    setting: homePath
    value: $SPLUNK_DB/myindex/db
    context: master-apps/_cluster/local

but getting error: no parameter named 'context'
Confirmed i have pulled this commit.
Have you been able to use the context setting?
Hoping there's going to be an update to the readme soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants