Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

apache2 (74) Versions 7.1.0

Installs and configures apache2

Berkshelf
Policyfile
Knife
cookbook 'apache2', '= 7.1.0'
cookbook 'apache2', '= 7.1.0', :supermarket
knife supermarket install apache2
knife supermarket download apache2
README
Dependencies
Changelog
Quality 100%

apache2 Cookbook

Cookbook Version Build Status OpenCollective OpenCollective License

This cookbook provides a complete Debian/Ubuntu style Apache HTTPD configuration. Non-Debian based distributions such as Red Hat/CentOS, ArchLinux and others supported by this cookbook will have a configuration that mimics Debian/Ubuntu style as it is easier to manage with Chef.

Debian-style Apache configuration uses scripts to manage modules and sites (vhosts). The scripts are:

  • a2ensite
  • a2dissite
  • a2enmod
  • a2dismod
  • a2enconf
  • a2disconf

This cookbook ships with templates of these scripts for non-Debian based platforms.

Maintainers

This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.

Cookbooks

Depending on your OS configuration and security policy, you may need additional recipes or cookbooks for this cookbook's recipes to converge on the node. In particular, the following Operating System settings may affect the behavior of this cookbook:

  • SELinux enabled
  • Firewalls (such as iptables, ufw, etc.)
  • Compile tools
  • 3rd party repositories

On RHEL, SELinux is enabled by default. The selinux cookbook contains a permissive recipe that can be used to set SELinux to "Permissive" state. Otherwise, additional recipes need to be created by the user to address SELinux permissions.

To deal with firewalls Chef Software does provide an iptables and ufw cookbook but is migrating from the approach used there to a more robust solution utilizing the general firewall cookbook to setup rules. See those cookbooks' READMEs for documentation.

On ArchLinux, if you are using the apache2::mod_auth_openid recipe, you also need the pacman cookbook for the pacman_aur LWRP. Put recipe[pacman] on the node's expanded run list (on the node or in a role). This is not an explicit dependency because it is only required for this single recipe and platform; the pacman default recipe performs pacman -Sy to keep pacman's package cache updated.

Platforms

The following platforms and versions are tested and supported using test-kitchen

  • Ubuntu 16.04 / 18.04
  • Debian 8/9
  • CentOS 7+
  • Fedora Latest
  • OpenSUSE Leap

Notes for RHEL Family

Apache2.4 support for Centos 6 is not officially supported.

Usage

It is recommended to create a project or organization specific wrapper cookbook and add the desired custom resources to the run list of a node. Depending on your environment, you may have multiple roles that use different recipes from this cookbook. Adjust any attributes as desired.

# service['apache2'] is defined in the apache2_default_install resource but other resources are currently unable to reference it.  To work around this issue, define the following helper in your cookbook:
service 'apache2' do
  extend Apache2::Cookbook::Helpers
  service_name lazy { apache_platform_service_name }
  supports restart: true, status: true, reload: true
  action :nothing
end

apache2_install 'default_install'
apache2_module 'headers'
apache2_module 'ssl'

apache2_default_site 'foo' do
  default_site_name 'my_site'
  cookbook 'my_cookbook'
  port '443'
  template_source 'my_site.conf.erb'
  action :enable
end

Example wrapper cookbooks: basic site ssl site

Resources

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

abiquo Applicable Versions
aem Applicable Versions
aet Applicable Versions
alfresco Applicable Versions
alphard-artifactory Applicable Versions
alphard-chef-artifactory Applicable Versions
apache Applicable Versions
apache2-git-site Applicable Versions
apache2-global-customlog Applicable Versions
apache2_odin_auth Applicable Versions
apache_vhosts Applicable Versions
application Applicable Versions
application_php Applicable Versions
application_ruby Applicable Versions
application_zf Applicable Versions
applications Applicable Versions
artifactory Applicable Versions
artifactory_ii Applicable Versions
asgard Applicable Versions
askbot Applicable Versions
awstats Applicable Versions
backuppc-server Applicable Versions
bamboo Applicable Versions
bigdesk Applicable Versions
boilerplate Applicable Versions
boilerplate_php Applicable Versions
bootstrap Applicable Versions
boxbilling Applicable Versions
bricks Applicable Versions
cacti Applicable Versions
cakephp Applicable Versions
celery-flower Applicable Versions
ceph Applicable Versions
ceph-chef Applicable Versions
certbot Applicable Versions
cgit Applicable Versions
chef Applicable Versions
chef-server Applicable Versions
chef-server-webapp Applicable Versions
chef_changereport_handler Applicable Versions
chef_crowd Applicable Versions
chef_jira Applicable Versions
cobbler Applicable Versions
codenamephp_apache2 Applicable Versions
config-driven-helper Applicable Versions
confluence Applicable Versions
crowd Applicable Versions
django Applicable Versions
drupal Applicable Versions
drupal-cookbook Applicable Versions
drupalbaseplus Applicable Versions
dse-chef Applicable Versions
dvwa Applicable Versions
dynatrace Applicable Versions
dynatrace-appmon Applicable Versions
elasticsearch-head Applicable Versions
elefant Applicable Versions
eulipion-slate Applicable Versions
foreman Applicable Versions
forge_server Applicable Versions
formatron_apache Applicable Versions
gallery Applicable Versions
gemirro Applicable Versions
gems Applicable Versions
gerrit Applicable Versions
git Applicable Versions
gotcms Applicable Versions
graphene Applicable Versions
graphite Applicable Versions
graylog2 Applicable Versions
gruyere Applicable Versions
hello_world_circleci_deploy_example Applicable Versions
http_platform Applicable Versions
icinga Applicable Versions
icinga-ng Applicable Versions
icinga2 Applicable Versions
icingaweb2 Applicable Versions
infochimps_graphite Applicable Versions
instiki Applicable Versions
ish_apache Applicable Versions
jekyll Applicable Versions
jenkins Applicable Versions
jira Applicable Versions
kibana Applicable Versions
kibana5-gm Applicable Versions
kibana_lwrp Applicable Versions
kickstart Applicable Versions
lamp_role Applicable Versions
laravel Applicable Versions
librenms Applicable Versions
librenms-ng Applicable Versions
logstash Applicable Versions
magento Applicable Versions
magentostack Applicable Versions
mailman Applicable Versions
margarita Applicable Versions
mater Applicable Versions
mattermost Applicable Versions
mediawiki Applicable Versions
mod_pagespeed Applicable Versions
mod_security Applicable Versions
mruby Applicable Versions
munin Applicable Versions
myface Applicable Versions
nagios Applicable Versions
nagios3 Applicable Versions
naglite2 Applicable Versions
newrelic Applicable Versions
nginx-proxy Applicable Versions
nginx_fallback_to_apache Applicable Versions
nodestack Applicable Versions
noosfero Applicable Versions
open-build-service Applicable Versions
opencart Applicable Versions
openstack-dashboard Applicable Versions
openstack-identity Applicable Versions
openstack-telemetry Applicable Versions
owncloud Applicable Versions
pagekit Applicable Versions
passenger_apache2 Applicable Versions
passenger_enterprise Applicable Versions
php Applicable Versions
phpbb Applicable Versions
phpldapadmin Applicable Versions
phpstack Applicable Versions
pnp4nagios Applicable Versions
postfixadmin Applicable Versions
poweradmin Applicable Versions
prestashop Applicable Versions
pxe Applicable Versions
pxe_dust Applicable Versions
pypi-mirror Applicable Versions
pythonstack Applicable Versions
q2a Applicable Versions
rackspace_apache_php Applicable Versions
radiant Applicable Versions
rails Applicable Versions
rainloop Applicable Versions
redirects Applicable Versions
redmine Applicable Versions
repository Applicable Versions
reprepro Applicable Versions
request_tracker Applicable Versions
rundeck Applicable Versions
smokeping Applicable Versions
sogo Applicable Versions
sptoolkit Applicable Versions
stack_commons Applicable Versions
stash Applicable Versions
staticip Applicable Versions
subversion Applicable Versions
sugar_crm Applicable Versions
sugarcrm Applicable Versions
sugarcrm-ce Applicable Versions
sugarcrm_ce Applicable Versions
suhosin Applicable Versions
teampass Applicable Versions
testswarm Applicable Versions
thruk Applicable Versions
tomcat-openam Applicable Versions
tonicdns Applicable Versions
toran Applicable Versions
trac Applicable Versions
vicnum Applicable Versions
virtual_hosts Applicable Versions
virtualbox Applicable Versions
virtualbox-install Applicable Versions
webinar1-myapp Applicable Versions
webobjects Applicable Versions
websrv Applicable Versions
wordpress Applicable Versions
yourls Applicable Versions
yumrepo_server Applicable Versions
zabbix Applicable Versions
zabbix-pkg Applicable Versions
zarafa Applicable Versions
zendserver Applicable Versions
zf2 Applicable Versions
zoneminder Applicable Versions

apache2 Cookbook Changelog

This file is used to list changes made in each version of the apache2 cookbook.

Unreleased

7.1.0 (29-05-2019)

  • Add upgrading examples in UPGRADING.md
  • Remove references to recipes in README.md and add a simple example
  • Allow users to set / alter the default module list
  • Allow users to alter the default modules configuration without rewrites
  • Allow users to alter the mpm configuration without rewrites
  • Fix error when passing ports as a String
  • Uniform way to pass IP's in mod_info and mod_status

7.0.0 (05-03-2019)

  • Remove all recipes
  • Use declare_resource in apache2_module
  • Add default value to apache_2_mod_proxy
  • Fix spelling of default in access_file_name property in install.rb

v6.0.0 (25-02-2019)

See UPGRADING.md for upgrading.

v6 - Behaviour Changes

  • Default recipe now calls the install resource
  • Add helpers: for a full list see libraries/helpers.rb
  • Remove all mpm_ recipes. Move mpm setup to the install resource
  • Allow user to set the mpm mode no matter what platform they're on
  • Remove FreeBSD, openSuse & Fedora Kitchen testing
  • mod_ recipes now call apache2_module_
  • Mod templates are now more configurable when calling the resources directly
  • Add apache2_default_site resource
  • Remove and document apache2_webapp resource
  • Add the default_site resource for managing the default site
  • Add site resource
  • Remove the web_app resource as it was very perscriptive
  • Add mod_ssl

v6 - Testing/CI

  • Add CircleCI and remove Travis
  • Add CircleCI Orbs
  • Rename test cookbook name to test
  • Cleanup test integration directory
  • Specs added for most helpers
  • Make sysconfig parameters configurable via the install resource

v6 - Misc Updates & Improvements

  • Update README with new instructions on installing
  • Set the server to listen on ports 80 and 443 by default
  • Fix Options allowed in alias.conf
  • Add resource documentation to documentation directory

v5.2.1 (04-09-2018)

  • Revert ports.conf fix (ports.conf that gets installed by package conflicts.

v5.2.0 (26-08-2018)

  • Drop Chef 12 support
  • Add Danger and CircleCI support
  • Move apache binary detection to the helpers file
  • Adds apache_platform_service_name, apache_dir ,apache_conf_dir helpers
  • Update kitchen configuration
  • Fix ports.conf location and how its set up (#550, skadz)
  • Allow httpd -t timeout to be configurable (#547, skadz)

v5.0.1 (2017-09-01)

  • Test using dokken-images in kitchen-dokken
  • Fix readme section for mod_php
  • Replace the existing testing.md contents with a link to the Chef testing docs
  • Fix mod_ldap failing on non-RHEL platforms
  • Fix mod_dav_svn to install the correct packages on Debian 8/9

v5.0.0 (2017-07-13)

Breaking changes

  • Support for Apache 2.2 has been fully removed so we can focus on providing a solid experience for Apache 2.4 and above. This removes support for RHEL 6, SLES 11, and Debian 7

Other changes

  • Fixed openSUSE support in multiple places and added integration testing for openSUSE in Travis

v4.0.0 (2017-07-10)

  • This cookbook now requires Chef 12.1 or later
  • Support for Apache 2.2 on FreeBSD has been removed
  • Support for Amazon Linux < 2013.09 has been removed
  • Support for end of life releases of Fedora (< 24), CentOS (5), Debian (6), Linux Mint (17), and Ubuntu (12.04) have been removed
  • Removed the deprecated recipes for mod_authz_default and mod_php5
  • Switched many package resources to Chef 12+ multipackage style to speed up Chef converges and reduce log clutter
  • mod_cache is now enabled when using mod_cache_disk and mod_cache_socache
  • The mod_cloudflare recipe now sets up the Apt repo with https
  • Improved support for Amazon Linux on Chef 13 and added Test Kitchen amazon testing
  • Improved support for Debian and RHEL derivative platforms
  • Improved Fedora support in multiple modules
  • Improved error logging for unsupported platforms in the mod_negotiation and mod_unixd recipes
  • Switched from Rake for testing to Delivery local mode
  • Setup integration testing with kitchen-dokken for core platforms in Travis so that every PR is now fully tested
  • Removed the EC2 and Docker kitchen files now that we have kitchen-dokken setup
  • Removed apt, pacman, yum, and zypper from the Berksfile as they're no longer needed for testing
  • Removed testing dependencies from the Gemfile as we're testing using ChefDK
  • Added integration testing for new Debian releases

Pre 4.0 Changelog

For changelog entries pre4.0 please see [the pre-4.0 CHANGELOG](CHANGELOG-pre4.md).

Collaborator Number Metric
            

7.1.0 passed this metric

Contributing File Metric
            

7.1.0 passed this metric

Foodcritic Metric
            

7.1.0 passed this metric

No Binaries Metric
            

7.1.0 passed this metric

Publish Metric
            

7.1.0 passed this metric

Supported Platforms Metric
            

7.1.0 passed this metric

Testing File Metric
            

7.1.0 passed this metric

Version Tag Metric
            

7.1.0 passed this metric