Puppet Class: noc::php_engine

Defined in:
modules/noc/manifests/php_engine.pp

Overview

Class noc::php_engine

Configures httpd to serve requests via HHVM/any other FastCGI backend

Parameters:

  • catchall_ensure (Any) (defaults to: present)


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

class noc::php_engine($catchall_ensure=present) {

    httpd::mod_conf { 'proxy_fcgi':
        ensure => present,
    }

    httpd::mod_conf { 'mod_php5':
        ensure => absent,
    }

    # HHVM catchall, and removal of mod_php
    httpd::conf { 'hhvm_catchall':
        ensure   => $catchall_ensure,
        source   => 'puppet:///modules/mediawiki/apache/configs/hhvm_catchall.conf',
        priority => 50,
    }

    # Add headers lost by mod_proxy_fastcgi
    httpd::conf { 'fcgi_headers':
        source   => 'puppet:///modules/mediawiki/apache/configs/fcgi_headers.conf',
        priority => 0,
    }
}