2021-08-05 16:02:58 +02:00
2019-04-10 20:45:59 +02:00
2017-07-09 16:20:05 +01:00
2019-04-10 20:45:20 +02:00
2018-04-20 15:36:33 +02:00
2018-04-20 10:32:51 +02:00
2020-12-01 17:54:26 +01:00
2020-12-08 16:30:26 +01:00
2017-07-10 18:59:32 +01:00
2021-08-05 16:02:58 +02:00

README.md

Build Status|

[[TOC]]

Synopsis

Apache httpd is a very powerful and widely used web server.

cd_apache automates the installation and configuration of httpd. This module is a base module simply providing the httpd service itself to be used by other role- or profile modules, adding more detailed configurations specific to the particular use case.

WARNING

**__!!! Attention: Never use this puppet module on systems which have been previously configured manually. It is impossible to predict how and what would have been configured, hence previuos configurations outside the scope of this module may be overwritten! Automated configurations require a test environment to verify that the module suits the purpose intended by the user, as well as tune the parameters, before deploying into live production!!! __**

Features

Installation

  • install required binaries and dependencies

Configuration

  • manage user settings (optional)
  • manage directory structure (optional)
  • manage configuration files (optional):
    • file system permissions
    • selinux context
  • manage firewall settings (optional)
  • manage nagios monitoring (optional) Maintenance
  • manage the service

vHosts

As stated in the synopsis, this module was written particularly for usage as base module. Apache httpd has a great number of usae cases where it actually is not used directly as full blown webser, but instead as 'sub-service'. Examples here would be

  • frontend proxy for other applications to avoid having to put the port number into the URL
  • applications like phpMyAdmin, phpPgAdmin
  • WordPress
  • Nagios etc.

With those use cases, you would provide the vHosts at the Puppet module for the application, not the base module. Also, if you plan to use this module to run a plain fully fledged web server, you would use a role- or profile class/module on top of cd_apache to set up your vHost exactly as needed. Examples for regular basic vHost configuration files are included in the examples directory as parameterized .erb files. You would create a define for vhosts, i.e. using the example parameters, and simply add cd_apache as requirement (i.e. require cd_apache) so it gets installed automatically.

Dependencies

All dependencies must be included in the catalogue.

Deployment

  • native Puppet deployment

via site.pp or nodes.pp

node 'example.example.net' {
  include cd_puppetdb
}
  • through Foreman:

In order to apply parameters through Foreman, cd_apache::params must be added to the host or hostgroup in question.

See more details about class deployment on Confdroid.com.

Parameters

The parameters are documented via puppet strings and listed here. Simply open in web browser.

SELINUX

All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.

Support

  • OS: CentOS 7
  • Puppet 5

Tests

  • Puppet Lint
    • excluded tests:
      • --no-class_inherits_from_params_class-check:relavant only to non-supported outdated puppet versions
      • --no-variable_scope-check: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.
      • --no-80chars-check: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault params.pp.
      • --no-arrow_alignment-check: this check leads to actually not having am easily readable arrow alignment, as this checks per block, not per class.
  • Puppet Parser
  • ERB Template Parser
  • Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)
  • Markdown-lint
  • Spellcheck
  • Sonar Quality Gate

Contact Us

contact Us

Disclaimer

ConfDroid as entity is entirely independent from Puppet. We provide custom configuration modules, written for specific purposes and specific environments. The modules are tested and supported only as documented, and require testing in designated environments (i.e. lab or development environments) for parameter tuning etc. before deploying into production environments.

Description
A Puppet 8 module to install and configure a basic apache httpd server
Readme 450 KiB
Languages
HTML 65.9%
Puppet 34.1%