Hi,

  It seems you are thinking that puppet is like other scripting language,
but it is not.   With puppet you define a final state, a model, so there is
not "first I exec this, get the output and do something".

  If you ask how to get a date to model something, I would answer just use
(custom) facts. But I think that the best question is why do you need that?

Regards,
El 01/02/2014 17:15, "jyotir bhandari" <[email protected]> escribió:

> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/b1100867-b76c-4a5c-8663-96e03dbc04b8%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3ddQKiD12zPMF68CKh4%2Br1Xd-O4M-qPudkYv4Y9vYQemgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to