Puppet Function: mediawiki::fcgi_endpoint

Defined in:
modules/mediawiki/functions/fcgi_endpoint.pp
Function type:
Puppet Language

Overview

mediawiki::fcgi_endpoint(Optional[Stdlib::Port::User] $port, String $pool)String

This function allows puppet code to compute the fcgi endpoint address from the port and pool names.

Parameters:

  • port (Optional[Stdlib::Port::User])
  • pool (String)

Returns:



3
4
5
6
7
8
9
# File 'modules/mediawiki/functions/fcgi_endpoint.pp', line 3

function mediawiki::fcgi_endpoint(Optional[Stdlib::Port::User] $port, String $pool) >> String {
    $port ? {
        undef => "unix:/run/php/fpm-${pool}.sock|fcgi://${pool}",
        default => "fcgi://127.0.0.1:${port}"
    }

}