Defined Type: nginx::status_site

Defined in:
modules/nginx/manifests/status_site.pp

Overview

SPDX-License-Identifier: Apache-2.0

Define: nginx::status_site

Provisions an Nginx site that serves local clients server stats, using the stub_status module.

See <wiki.nginx.org/HttpStubStatusModule> for details.

Parameters

port

Port to listen on. Defaults to 8080.

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: 'present')
  • port (Stdlib::Port) (defaults to: 8080)


14
15
16
17
18
19
20
21
22
# File 'modules/nginx/manifests/status_site.pp', line 14

define nginx::status_site(
    Wmflib::Ensure $ensure = 'present',
    Stdlib::Port   $port   = 8080,
) {
    nginx::site { $title:
        ensure  => $ensure,
        content => template('nginx/status.nginx.erb'),
    }
}