Puppet Class: profile::httpd

Defined in:
modules/profile/manifests/httpd.pp

Summary

configure httpd daemon

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • modules (Array[String]) (defaults to: lookup('profile::httpd::modules'))

    list of modules to install

  • legacy_compat (Wmflib::Ensure) (defaults to: lookup('profile::httpd::legacy_compat'))

    Use Apache 2.2 compatible syntax.

  • period (Enum['daily', 'weekly']) (defaults to: lookup('profile::httpd::period'))

    log rotation period

  • rotate (Integer) (defaults to: lookup('profile::httpd::rotate'))

    amount of log rotated files to keep

  • enable_forensic_log (Boolean) (defaults to: lookup('profile::httpd::enable_forensic_log'))

    turn on forensic logs

  • extra_pkgs (Array[String]) (defaults to: lookup('profile::httpd::extra_pkgs'))

    Extra packages to install which are not pulled in by the “apache2” base package in Debian.

  • purge_manual_config (Boolean) (defaults to: lookup('profile::httpd::purge_manual_config'))

    remove any unmanaged files in the apache directory

  • remove_default_ports (Boolean) (defaults to: lookup('profile::httpd::remove_default_ports'))

    if true remove the default port list

  • http_only (Boolean) (defaults to: lookup('profile::httpd::http_only'))

    if true only enable to http port

  • wait_network_online (Boolean) (defaults to: lookup('profile::httpd::wait_network_online'))

    Set to true to have the service to run after network-online.target. Can be used when Apache is configured to Listen to an explicit IP address.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'modules/profile/manifests/httpd.pp', line 15

class profile::httpd (
    Array[String]           $modules              = lookup('profile::httpd::modules'),
    Wmflib::Ensure          $legacy_compat        = lookup('profile::httpd::legacy_compat'),
    Enum['daily', 'weekly'] $period               = lookup('profile::httpd::period'),
    Integer                 $rotate               = lookup('profile::httpd::rotate'),
    Boolean                 $enable_forensic_log  = lookup('profile::httpd::enable_forensic_log'),
    Array[String]           $extra_pkgs           = lookup('profile::httpd::extra_pkgs'),
    Boolean                 $purge_manual_config  = lookup('profile::httpd::purge_manual_config'),
    Boolean                 $remove_default_ports = lookup('profile::httpd::remove_default_ports'),
    Boolean                 $http_only            = lookup('profile::httpd::http_only'),
    Boolean                 $wait_network_online  = lookup('profile::httpd::wait_network_online'),
) {
    class { 'httpd':
        * => wmflib::resource::dump_params(),
    }

    profile::auto_restarts::service { 'apache2': }
    profile::auto_restarts::service { 'envoyproxy': }
}