Re: [Puppet Users] exec in master transfer files to the node

2012-08-07 Thread Nikolaos Hatzopoulos
I use this inside the class generate("/bin/bash","/etc/puppet/manifests/myusers/sshkeygen.bash") and I am generating a key inside the server but the permission of the folder must be: user: puppet group: puppet --Nikos On Wed, Aug 1, 2012 at 12:28 AM, David Schmitt wrote: > On 31.07.2012 20:

Re: [Puppet Users] exec in master transfer files to the node

2012-08-01 Thread David Schmitt
On 31.07.2012 20:09, Nikolaos Hatzopoulos wrote: exec { "sshkeygen": path=> "/usr/bin:/usr/sbin:/bin", creates => [ "puppet:///myuser/files/$username/id_rsa" , "puppet:///myuser/files/$username/id_rsa.pub" ], command => generate("/bi

Re: [Puppet Users] exec in master transfer files to the node

2012-07-31 Thread Nikolaos Hatzopoulos
exec { "sshkeygen": path=> "/usr/bin:/usr/sbin:/bin", creates => [ "puppet:///myuser/files/$username/id_rsa" , "puppet:///myuser/files/$username/id_rsa.pub" ], command => generate("/bin/bash","/etc/puppet/manifests/myusers/sshkeygen.bash"

Re: [Puppet Users] exec in master transfer files to the node

2012-07-31 Thread David Schmitt
On 30.07.2012 19:21, Nikolaos Hatzopoulos wrote: How you exec something in the master produce a file and this files you transfer it to your node? take a look at the template(), inline_template() and generate() function: http://docs.puppetlabs.com/references/stable/function.html Best Regards,

[Puppet Users] exec in master transfer files to the node

2012-07-30 Thread Nikolaos Hatzopoulos
How you exec something in the master produce a file and this files you transfer it to your node? --Nikos -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Li