Puppet Function: tp::ensure2file

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

Overview

tp::ensure2file(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/ensure2file.pp', line 1

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