Puppet can actually do math inline:

$shmmax = 2 * 1024 * 1024 * 1024
notify { $shmmax: }

Maybe this is the easiest way to solve your problem?

Thanks,
Spencer

On Sun, Nov 16, 2014 at 11:19 AM, Ashish <ashish1...@gmail.com> wrote:

> Hi Felix,
>
> It was consuming lot of CPU and causing the host machine to get hanged.. I
> used the inline_template for the moment.
>
> Any work around would be nice ??
>
> I don’t know why it is causing hurt to cpu, cause its just a simple math
> out there. Let me know ??
>
> > On 15-Nov-2014, at 12:08 am, Felix Frank <
> felix.fr...@alumni.tu-berlin.de> wrote:
> >
> > On 11/08/2014 06:01 AM, Ashish Jaiswal wrote:
> >> Hi John,
> >>
> >> Thanks for the pointer, for workaround I used the inline_template
> >> function to work. Thanks for the piece of code. I will try this once I
> >> reach office, that would be on Monday.
> >
> > Yeah, that's pretty expensive in case you're low on CPU.
> >
> > Has that worked out for you?
> >
> > --
> > 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...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/54664C12.5050807%40alumni.tu-berlin.de
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/EF16F5D2-8F71-4ED6-91F3-FA77DC9409F5%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Spencer Krum
(619)-980-7820

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CADt6FWM2wrbvtRcA79rq3aLpc3deRVste1eUKjYZnmkMN2aTmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to