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

JSON conf #9

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Conversation

tmclaugh
Copy link

@tmclaugh tmclaugh commented Nov 7, 2013

The following PR adds a $json_conf parameter that can be toggled to create a JSON formatted lumberjack config. Setting it to true will alter how the $hostname and $files parameters work.

NOTE: This relies on a function called sorted_json() which I found as a gist on GitHub and no license. I've contacted the author regarding this. The functionality is unusable without this.
ref. https://gist.github.com/halkeye/2287885

Additionally, this PR fixes some other minor issues I ran into while testing my changes

  • An incorrect variable name in the lumberjack.erb file
  • /etc/lumberjack is now created by the module. (Our RPM did not do that.)
  • proper dependency handling in lumberjack::instance if $lumberjack::restart_on_change is false

tmclaugh referenced this pull request in danjung/puppet-lumberjack Nov 7, 2013
Otherwise you will not be able to create the /etc/lumberjack/${name} directory.
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

Successfully merging this pull request may close these issues.

None yet

1 participant