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

Add support for access logging #287

Closed
wants to merge 3 commits into from
Closed

Conversation

rchekaluk
Copy link

There isn't currently a standard technique for enabling a Jenkins access log across the various installation methods that this cookbook supports:

  • rpm packages do support a setting JENKINS_ENABLE_ACCESS_LOG, however the path and file name are hardcoded
  • Debian packages are missing any support per JENKINS-18870
  • war installation provides no access log support

This pull request adds two new attributes that provision a standardized access logging capability across the above installation methods:

  • node['jenkins']['master']['access_log'] - the filename of the access log
  • node['jenkins']['master']['access_log_enabled'] - whether to provision access logging or not

See also https://wiki.jenkins-ci.org/display/JENKINS/Access+Logging

@@ -9,5 +9,6 @@
recipe 'master', 'Installs a Jenkins master'

depends 'apt', '~> 2.0'
depends 'logrotate'

Choose a reason for hiding this comment

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

You probably want to put at least some version constraint on the logrotate cookbook to keep it from changing radically under you.

@jtimberman
Copy link
Contributor

@rchekaluk Have you had a chance to review the comments from @someara and @smurawski?

@opscode-cookbooks/ociv Also please review.

@schisamo
Copy link
Contributor

I'm closing this now for inactivity. Please feel free to open again in the future.

@schisamo schisamo closed this May 12, 2015
@rchekaluk
Copy link
Author

Added additional commits per the above review comments.

@rchekaluk
Copy link
Author

@schisamo Unable to reopen this PR myself.

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

6 participants