Puppet Function: tp::ensure2dir

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

Overview

tp::ensure2dir(Variant[Boolean,String] $input = present)Any

Parameters:

  • input (Variant[Boolean,String]) (defaults to: present)

Returns:

  • (Any)


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

function tp::ensure2dir (
  Variant[Boolean,String] $input  = present,
) {
  $output = $input ? {
    'absent'  => absent,
    false     => absent,
    default   => 'directory',
  }
}