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

fix for log_dir not being honored (#895) #904

Merged
merged 1 commit into from
Oct 8, 2016
Merged

fix for log_dir not being honored (#895) #904

merged 1 commit into from
Oct 8, 2016

Conversation

wyardley
Copy link
Collaborator

@wyardley wyardley commented Oct 8, 2016

Requesting review on this possible fix for #895.

Two things:

  1. This seems to "work", and the other ways I could think of to do it didn't seem more appealing, but should any of this be moved out of the class parameters?
  2. I'd like to add some additional spec tests for this, any thoughts on what / how to test?

context 'when log_dir is non-default' do
let(:params) { { log_dir: '/foo/bar' } }

it { is_expected.to contain_file('/foo/bar').with(ensure: 'directory') }
Copy link
Member

Choose a reason for hiding this comment

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

could you add tests for the $http_access_log and $nginx_error_log variables as well? not sure if they contain the correct path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

How's that look?

@bastelfreak bastelfreak merged commit c6e7467 into voxpupuli:master Oct 8, 2016
@wyardley wyardley deleted the issue_895_log_dir branch October 27, 2016 17:16
@wyardley wyardley mentioned this pull request Dec 29, 2016
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Sep 13, 2019
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
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.

2 participants