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:
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
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"
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,
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