puppet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
puppet [2019/01/21 18:11] – [trimming values] k2patel | puppet [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 43: | Line 43: | ||
==== Puppet Dynamic values playground ==== | ==== Puppet Dynamic values playground ==== | ||
+ | === EPP and passing values === | ||
+ | <code ruby> | ||
+ | $template_parameters = { | ||
+ | | ||
+ | test2 => $test:: | ||
+ | | ||
+ | } | ||
+ | |||
+ | content => epp(' | ||
+ | </ | ||
==== trimming values ==== | ==== trimming values ==== | ||
Following can grab the last character from the hostname and convert to integer to avoid warning. | Following can grab the last character from the hostname and convert to integer to avoid warning. | ||
Line 316: | Line 326: | ||
psql puppetdb -c ' | psql puppetdb -c ' | ||
</ | </ | ||
+ | |||
+ | === Mapping values === | ||
+ | <code ruby> | ||
+ | <%- $ips = $vs_map[$name].map |$val| { $val[' | ||
+ | </ | ||
+ | |||
==== External Links ==== | ==== External Links ==== | ||
Line 324: | Line 340: | ||
[[ https:// | [[ https:// | ||
+ | |||
+ | [[ https:// |
puppet.1548094289.txt.gz · Last modified: 2020/08/10 02:30 (external edit)