Puppet Function: nginx::switch

Defined in:
functions/switch.pp
Function type:
Puppet Language

Overview

nginx::switch(Variant[Nginx::Switch, String] $directive)String

Parameters:

  • directive (Variant[Nginx::Switch, String])

Returns:

  • (String)


1
2
3
4
5
6
7
# File 'functions/switch.pp', line 1

function nginx::switch(Variant[Nginx::Switch, String] $directive) >> String {
  case $directive {
    false: { 'off' }
    true: { 'on' }
    default: { $directive }
  }
}