Warning
apache_conf resource. Use the apache Chef InSpec audit resource to test the state of the Apache server on Linux/Unix systems.
This resource was distributed along with Chef InSpec itself.
This resource first became available in v1.51.15 of InSpec and was removed in version 4.0.
An apache Chef InSpec audit resource block declares settings that should be tested:
describe apache do
its('setting_name') { should cmp 'value' }
end
where
'setting_name' is description of the Apache configuration file{ should cmp 'value' } is the value that is expectedservice, conf_dir, conf_path, user
The following examples show how to use this Chef InSpec audit resource.
describe apache do
its ('service') { should cmp 'apache2' }
end
describe apache do
its ('conf_dir') { should cmp '/etc/apache2' }
end
describe apache do
its ('conf_path') { should cmp '/etc/apache2/apache2.conf' }
end
describe apache do
its ('user') { should cmp 'www-data' }
end
For a full list of available matchers, please visit our matchers page.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/apache/