Puppet Function: tp::install

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

Overview

tp::install(String $app, Hash $params = {})Any

This function runs the tp::install define trying to avoid duplicated resources issues the tp::install may be declared multiple times (with same parameters) It is equivalent to the tp_install function, written in Ruby

Parameters:

  • app (String)
  • params (Hash) (defaults to: {})

Returns:

  • (Any)


6
7
8
9
10
11
12
13
14
15
# File 'functions/install.pp', line 6

function tp::install (
  String $app,
  Hash   $params = {},
) {
  if ! defined_with_params(Tp::Install[$app], $params ) {
    tp::install { $app:
      * => $params,
    }
  }
}