Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Development repository for the apache2 cookbook

License

NotificationsYou must be signed in to change notification settings

sous-chefs/apache2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookbook VersionCI StateOpenCollectiveOpenCollectiveLicense

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 visitsous-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. Theselinux cookbook contains apermissive 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 aniptables andufw cookbook but is migrating from the approach used there to a more robust solution utilizing the generalfirewall cookbook to setup rules. See those cookbooks' READMEs for documentation.

On ArchLinux, if you are using theapache2::mod_auth_openid recipe, you also need thepacman cookbook for thepacman_aur LWRP. Putrecipe[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 performspacman -Sy to keep pacman's package cache updated.

Platforms

The following platforms and versions are tested and supported usingtest-kitchen

  • Amazon Linux 2023
  • CentOS 7+ (incl. Rocky & Alma)
  • Debian 10+
  • Fedora latest
  • OpenSUSE Leap 15
  • Ubuntu 18.04+

Usage

It is recommended to create a project or organization specificwrapper 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.

apache2_install'default_install'donotifies:restart,'apache2_service[default]'endapache2_module'headers'donotifies:reload,'apache2_service[default]'endapache2_module'ssl'donotifies:reload,'apache2_service[default]'endapache2_default_site'foo'dodefault_site_name'my_site'template_cookbook'my_cookbook'port'443'template_source'my_site.conf.erb'action:enablenotifies:reload,'apache2_service[default]'endapache2_service'default'doaction[:enable,:start]end

Example wrapper cookbooks:basic sitessl site

Resources

Contributors

This project exists thanks to all the people whocontribute.

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/websitehttps://opencollective.com/sous-chefs/sponsor/1/websitehttps://opencollective.com/sous-chefs/sponsor/2/websitehttps://opencollective.com/sous-chefs/sponsor/3/websitehttps://opencollective.com/sous-chefs/sponsor/4/websitehttps://opencollective.com/sous-chefs/sponsor/5/websitehttps://opencollective.com/sous-chefs/sponsor/6/websitehttps://opencollective.com/sous-chefs/sponsor/7/websitehttps://opencollective.com/sous-chefs/sponsor/8/websitehttps://opencollective.com/sous-chefs/sponsor/9/website


[8]ページ先頭

©2009-2025 Movatter.jp