Puppet Function: mediawiki::fcgi_endpoint

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

Overview

mediawiki::fcgi_endpoint(Optional[Wmflib::UserIpPort] $port, String $pool)String

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

Parameters:

  • port (Optional[Wmflib::UserIpPort])
  • pool (String)

Returns:



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

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

}