Defined Type: nginx::status_site

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

Overview

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)


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

define nginx::status_site(
    Wmflib::Ensure $ensure = 'present',
    Stdlib::Port   $port   = 8080,
){

    nginx::site { 'status':
        ensure  => $ensure,
        content => template('nginx/status.nginx.erb'),
    }

}