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10.0
- 0.9.1
Installs and configures apache2
cookbook 'apache2', '= 8.2.1', :supermarket
knife supermarket install apache2
knife supermarket download apache2
apache2 Cookbook
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 9/10
- 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' template_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!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Collaborator Number Metric
8.2.1 passed this metric
Contributing File Metric
8.2.1 passed this metric
Foodcritic Metric
8.2.1 passed this metric
No Binaries Metric
8.2.1 passed this metric
Testing File Metric
8.2.1 passed this metric
Version Tag Metric
8.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
8.2.1 passed this metric
8.2.1 passed this metric
Foodcritic Metric
8.2.1 passed this metric
No Binaries Metric
8.2.1 passed this metric
Testing File Metric
8.2.1 passed this metric
Version Tag Metric
8.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
8.2.1 passed this metric
8.2.1 passed this metric
Testing File Metric
8.2.1 passed this metric
Version Tag Metric
8.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
8.2.1 passed this metric
8.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number