Re: [Puppet Users] Re: Copy files after Apache install...but only once.

2014-02-02 Thread pskovshurik
Thanks John and Louis. That's what I was thinking as well. I went in a slightly different direction - I check whether a package is installed and then execute the package and file bits if not Alex On Saturday, February 1, 2014 8:23:25 AM UTC, Louis Coilliot wrote: > > Hello, > > for a an individ

Re: [Puppet Users] call exec into another class as a variable / how to get output of shell echo $(($(date +%s) / 60 / 60 / 24)) into variable

2014-02-02 Thread José Luis Ledesma
I don't understand why the epoch_date fact doesn't work, why you cannot use the user resource? If it is because the password is enforced, you can use the user resource to create the user, and launch a chpasswd once created to setup the initial password. Regards. P.N. just realized the emails wer

[Puppet Users] Re: call exec into another class as a variable / how to get output of shell echo $(($(date +%s) / 60 / 60 / 24)) into variable

2014-02-02 Thread jyotir bhandari
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 O