-
Notifications
You must be signed in to change notification settings - Fork 682
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
Follow up to 1013: find_files() errors still occurring for apache_conf resource after 0.33.0 upgrade #1030
Comments
@chris-rock I found where the issue is happening for me: https://github.com/chef/inspec/blob/master/lib/resources/apache_conf.rb#L107-L112 In this block, From: /Users/david/.chefdk/gem/ruby/2.1.0/gems/inspec-0.33.0/lib/resources/apache_conf.rb @ line 110 Inspec::Resources::ApacheConf#include_files:
|
@davidcpell are you using absolute paths in your httpd.conf or ones relative to ServerRoot? http://httpd.apache.org/docs/2.4/mod/core.html#include I believe inspec is assuming they are relative to ServerRoot. |
@davidcpell is this solved with #1042 as well? |
@chris-rock yes sorry! closing this |
Description
This is a follow-up to #1013. The
find_files()
failures are still occurring for me with theapache_conf
resource even after updating to InSpec0.33.0
.It seems (?) like the problem is happening the httpd is installed with the community apache2 cookbook.
InSpec and Platform Version
Windows 7 Enterprise
Replication Case
I've created a dummy cookbook that can be used to replicate: https://github.com/davidcpell/apatchme. It tests Centos 7.2 and 6.7 using both the main apache2 community cookbook and just
package 'httpd'
.$ chef exec kitchen verify
See dummy cookbook README for more info
Stacktrace
For the recipe that uses the community cookbook (that installs some modules, I think), the output looks like this:
The
/etc/httpd
part of the path is being doubled.The text was updated successfully, but these errors were encountered: