You can use inline_template("<%= var = "your ruby code here" %>")
Cheers
On Monday, November 4, 2013 2:23:34 PM UTC, jcbollinger wrote:
>
>
>
> 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
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
On 11/02/2013 11:52 PM, ytmp123 wrote:
I want to define and call a ruby-method within a Puppet template oder
Puppet manifest
--
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
I want to define and call a ruby-method within a Puppet template oder
Puppet manifest
--
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+unsubscr...@g
Now i feel stupid
$reversenetwork= inline_template("<%= '$ipaddress'.split('.')
[0,3].reverse.join('.') %>")
FTW!
:D
On Nov 4, 7:42 pm, Arenstar wrote:
> Simply put..
>
> I need the reverse of an ipaddress for a in-addr.arpa..
> Puppet has a function i can find that will simply execute ruby c