anifests can now be written in pure Ruby. Example please?

56 views
Skip to first unread message

spare...@gmail.com

unread,
Mar 14, 2015, 3:49:25 PM3/14/15
to puppet...@googlegroups.com
Hi,
According to official Puppet documenttion:

https://docs.puppetlabs.com/guides/faq.html#why-does-puppet-have-its-own-language


As for just using Ruby as the input format, Puppet 2.6.0 actually added this functionality, and manifests can now be written in pure Ruby. However, this capability should be used carefully and avoided where possible: the full grammar of Ruby is often too much functionality, and we believe systems administrators should be able to model their datacenters in a higher-level system

Is above statement true for latest version of puppet as well ?
Can somebody give a  simple example please ?

Thanks.
 

Denmat

unread,
Mar 14, 2015, 8:47:08 PM3/14/15
to puppet...@googlegroups.com
As of 3.1 this functionality has been deprecated and replaced by 'future parser' in  3.2.

See release notes for full detail.
HTH
Den
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/db8fa575-10da-4f8b-be97-124c2d9550f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Sorenson

unread,
Mar 15, 2015, 3:22:51 PM3/15/15
to puppet...@googlegroups.com
Ugh, thanks for pointing this out, this is really old and is not true any more. Looks like Mike Hall just pushed a docs change to remove this reference.

As Den pointed out, the main feature that people used the Ruby DSL for (loops/iteration) is now available in the Puppet 4 parser.
Reply all
Reply to author
Forward
0 new messages