Why don't you use inline_template and call a ruby function that returns 
what you want?

On Saturday, February 1, 2014 12:15:37 PM UTC-4, jyotir bhandari wrote:
>
> Hi
>
> I have date as shell command 'echo $(($(date +%s) / 60 / 60 / 24))', I 
> want to call this command in parameter of puppet module, how can i do it.
>
> or how can i use exec { "date": commnand => 'echo $(($(date +%s) / 60 / 60 
> / 24))' } redirect ouput into some variable as $date and call into puppet 
> parameter.
>
> Jyotir
>

-- 
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/9cbc9f6b-6c4a-42c5-9edb-f219e58f89b3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to