Using the future parser
Puppet language is evolving at the moment; many features that are expected to be included in the next major release (4) are available if you enable the future parser.
Getting ready
- Ensure that the
rgen
gem is installed. - Set
parser = future
in the[main]
section of yourpuppet.conf
(/etc/puppet/puppet.conf
for open source Puppet asroot,/etc/puppetlabs/puppet/puppet.conf
for PuppetEnterprise, and~/.puppet/puppet.conf
for a non-root user running puppet). - To temporarily test with the future parser, use
--parser=future
on the command line.
How to do it...
Many of the experimental features deal with how code is evaluated, for example, in an earlier example we compared the value of the $::facterversion
fact with a number, but the value ...
Get Puppet Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.