Hi Jose,
Thanks, I was able to set it via chpasswd.
init.pp
class accounts {
@accounts::system { 'demo':
comment => 'demo users',
}
exec { "demo":
command => 'echo "demo:123456" | chpasswd',
provider => 'shell',
}
}
Thanks, again.
Jyotir
On Saturday, 1 February 2014 21:45:37 UTC+5:30, 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/573f7c3e-bf11-4aaf-bdd6-faed85975858%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.