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

Allow redirecting of settings into custom contexts #87

Merged
merged 1 commit into from
May 26, 2017
Merged

Allow redirecting of settings into custom contexts #87

merged 1 commit into from
May 26, 2017

Conversation

michaelweiser
Copy link
Contributor

Add a new resource parameter that allows redirection of settings into
contexts other than system/local. In prarticular this allows to
customize (and even create) apps with context =>
"apps//{default,local}". Incidentally this centralises redundant
occurences of system/local as the parameter default.

Add a new resource parameter that allows redirection of settings into
contexts other than system/local. In prarticular this allows to
customize (and even create) apps with context =>
"apps/<app>/{default,local}". Incidentally this centralises redundant
occurences of system/local as the parameter default.
@michaelweiser
Copy link
Contributor Author

Phew. Sorry to keep repushing changed commits multiple times but the test suite kinda got to me. It seems to be sorted now.

@bastelfreak
Copy link
Member

@crayfishx could you have a look please?

@bastelfreak bastelfreak added the enhancement New feature or request label May 26, 2017
@bastelfreak
Copy link
Member

Thanks for the PR @michaelweiser!

@@ -14,6 +14,10 @@ class << self
def self.file_path
raise Puppet::Error, 'file_path must be set with splunk_config type before provider can be used' if @file_path.nil?
raise Puppet::Error, 'Child provider class does not support a file_name method' unless respond_to?(:file_name)
File.join(@file_path, file_name)
@file_path
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks instances (as the parent provider instances method no longer uses the correct path). In turn this breaks all settings related to purging unmanaged resources.

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

Successfully merging this pull request may close these issues.

3 participants