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

Testing updates #465

Merged
merged 9 commits into from
Feb 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .kitchen.docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ verifier:
name: inspec

platforms:
- name: centos-7.2
- name: centos-7.3
driver:
image: centos:7
platform: rhel
Expand Down Expand Up @@ -63,7 +63,7 @@ suites:
- recipe[apache2_test::mod_status_remote]
- name: prefork
includes: [
'centos-7.2',
'centos-7.3',
'ubuntu-14.04',
'ubuntu-16.04'
]
Expand All @@ -87,7 +87,7 @@ suites:
- test/integration/default/inspec/localhost
- name: worker
includes: [
'centos-7.2'
'centos-7.3'
]
attributes:
apache:
Expand Down
15 changes: 6 additions & 9 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,22 @@ verifier:
name: inspec

platforms:
- name: centos-7.2
- name: centos-7.3
- name: ubuntu-14.04
run_list:
- recipe[yum]
- recipe[apt]
- name: ubuntu-16.04
run_list:
- recipe[apt]
- name: debian-8.6
run_list:
- recipe[apt]
- name: fedora-24
run_list:
- recipe[yum::dnf_yum_compat]
- name: fedora-25
- name: freebsd-10.3
- name: amazon
driver:
box: mvbcoding/awslinux
- name: opensuse-13.2
run_list:
- recipe[zypper]

suites:
- name: default
Expand Down Expand Up @@ -58,7 +55,7 @@ suites:
- recipe[apache2_test::mod_status_remote]
- name: prefork
includes: [
'centos-7.2',
'centos-7.3',
'debian-8.6',
'ubuntu-14.04',
'ubuntu-16.04'
Expand Down Expand Up @@ -87,7 +84,7 @@ suites:
- test/integration/default/inspec/localhost
- name: worker
includes: [
'centos-7.2',
'centos-7.3',
'ubuntu-14.04'
]
attributes:
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@ performs `pacman -Sy` to keep pacman's package cache updated.
The following platforms and versions are tested and supported using
[test-kitchen](http://kitchen.ci/)

* Ubuntu 14.04
* Ubuntu 16.04
* Debian 8.6
* CentOS 7.2
* CentOS 7.3
* Fedora 25

The following platform families are supported in the code, and are
assumed to work based on the successful testing on Ubuntu and CentOS.

* Red Hat (rhel)
* Fedora

The following platforms are also supported in the code, have been
tested manually but are not regularly tested under test-kitchen.
Expand All @@ -102,7 +103,7 @@ Usage
=====

Using this cookbook is relatively straightforward. It is recommended to create
a project or organization specific [wrapper cookbook](https://www.chef.io/blog/2013/12/03/doing-wrapper-cookbooks-right/)
a project or organization specific [wrapper cookbook](https://www.chef.io/blog/2013/12/03/doing-wrapper-cookbooks-right/)
and add the desired recipes to the run list of a node, or create a role. Depending on your
environment, you may have multiple roles that use different recipes
from this cookbook. Adjust any attributes as desired. For example, to
Expand Down Expand Up @@ -383,7 +384,7 @@ Definitions
===========

The cookbook provides a few definitions. At some point in the future
these definitions will be refactored into custom resources see
these definitions will be refactored into custom resources see
[issue 414](https://github.com/sous-chefs/apache2/issues/414).

apache\_conf
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"apache": {
"version": "2.4",
"package": "httpd",
"devel_package": "httpd-devel",
"binary": "/usr/sbin/httpd",
"mpm": "prefork",
"dir": "/etc/httpd",
"lib_dir": "/usr/lib64/httpd",
"libexec_dir": "/usr/lib64/httpd/modules",
"cache_dir": "/var/cache/httpd",
"cgibin_dir": "/var/www/cgi-bin",
"docroot_dir": "/var/www/html",
"conf": "/etc/httpd/conf/httpd.conf",
"perl_pkg": "perl",
"log_dir": "/var/log/httpd",
"root_group": "root",
"service_name": "httpd",
"default_site_name": "default",
"default_site_enabled": false,
"default_modules": [
"status",
"alias",
"auth_basic",
"authn_file",
"authz_core",
"authz_groupfile",
"authz_host",
"authz_user",
"autoindex",
"dir",
"env",
"mime",
"negotiation",
"setenvif",
"systemd"
],
"mod_ssl": {
"pkg_name": "mod_ssl"
},
"mod_php": {
"module_name": "php5",
"so_filename": "libphp5.so"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"apache": {
"version": "2.4",
"package": "httpd",
"devel_package": "httpd-devel",
"binary": "/usr/sbin/httpd",
"mpm": "prefork",
"dir": "/etc/httpd",
"lib_dir": "/usr/lib64/httpd",
"libexec_dir": "/usr/lib64/httpd/modules",
"cache_dir": "/var/cache/httpd",
"cgibin_dir": "/var/www/cgi-bin",
"docroot_dir": "/var/www/html",
"conf": "/etc/httpd/conf/httpd.conf",
"perl_pkg": "perl",
"log_dir": "/var/log/httpd",
"root_group": "root",
"service_name": "httpd",
"default_site_name": "default",
"default_site_enabled": false,
"default_modules": [
"status",
"alias",
"auth_basic",
"authn_file",
"authz_core",
"authz_groupfile",
"authz_host",
"authz_user",
"autoindex",
"dir",
"env",
"mime",
"negotiation",
"setenvif",
"systemd"
],
"mod_auth_openid": {
"version": "0.8"
},
"mod_ssl": {
"pkg_name": "mod_ssl"
},
"mod_php": {
"module_name": "php5",
"so_filename": "libphp5.so"
}
}
}