Puppet Class: profile::ci::httpd

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

Overview

A webserver configured for a CI master, as proxy



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/profile/manifests/ci/httpd.pp', line 2

class profile::ci::httpd {

    if os_version('debian == buster') {
        $php_version = '7.3'
    } else {
        $php_version = '7.0'
    }

    $httpd_php_package = "libapache2-mod-php${php_version}"
    $httpd_php_module = "php${php_version}"

    require_package($httpd_php_package)

    # headers: Need to send Vary: X-Forwarded-Proto since most sites are
    # forced to HTTPS and behind a varnish cache. See also T62822
    #
    # proxy/proxy_http: for Jenkins and Zuul proxied behind httpd
    class { '::httpd':
        modules => ['headers',
                    'rewrite',
                    $httpd_php_module,
                    'proxy',
                    'proxy_http'
        ],
    }
}