Puppet Function: tp::title_replace
- Defined in:
- functions/title_replace.pp
- Function type:
- Puppet Language
Overview
Function tp::title_replace. Gets a string the a $TITLE placeholder and coverts it based on the given title.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'functions/title_replace.pp', line 3
function tp::title_replace (
Variant[String,Undef] $input,
String $_app,
) {
if $input == undef {
return undef
} else {
$replaced_title = regsubst($input,'\$TITLE', $_app, 'G')
return $replaced_title
}
}
|