This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
puppet [2019/01/21 18:06] k2patel [Variables in node / site maniefest] |
puppet [2019/01/21 18:11] k2patel [trimming values] |
||
---|---|---|---|
Line 43: | Line 43: | ||
==== Puppet Dynamic values playground ==== | ==== Puppet Dynamic values playground ==== | ||
+ | ==== trimming values ==== | ||
+ | Following can grab the last character from the hostname and convert to integer to avoid warning. | ||
+ | <code ruby> | ||
+ | $esnumber = inline_epp('<%= Integer.new($::hostname[-1,1]) + 1 %>') | ||
+ | </code> | ||
==== Checking Hiera Value ==== | ==== Checking Hiera Value ==== | ||
**Trying to lookup vhostip value** | **Trying to lookup vhostip value** |