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" ) }
this command does not work!! why? err: Could not retrieve catalog from remote server: wrong header line format warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run --Nikos On Tue, Jul 31, 2012 at 12:07 AM, David Schmitt <da...@dasz.at> wrote: > 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<http://docs.puppetlabs.com/references/stable/function.html> > > > Best Regards, David > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@** > googlegroups.com <puppet-users%2bunsubscr...@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en> > . > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.