You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
On Saturday, November 2, 2013 5:03:13 PM UTC-5, ytmp123 wrote:
Hi guys,
I've two questions: 1. How can I execute normal Ruby-Code in a Puppet-Template?
See any onine docs / tutorials on ERB, though there really isn't much to it. The docs Jo pointed you to are as good as any, and they cover the details particular to Puppet's use of ERB.
2. How can I execute normal Ruby-Code in a Puppet-Manifest?
Not directly, no, but it is relatively easy to create custom functions (in Ruby) that your manifests can call just like Puppet's built-ins. These are often a better vehicle for general-purpose Ruby code than are templates.