Defined Type: nginx::status_site

Defined in:
puppet/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 (Any) (defaults to: present)
  • port (Any) (defaults to: 8080)


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

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