Re: [EXTERNAL] - [Puppet Users] Need to put iterative value in a file

2017-05-05 Thread Dirk Heinrichs
On 04.05.2017 09:26, Quentin lenglet wrote: > $demofiles = "/root/.ssh/test" > $lpsc::ssh_keys.each | String $value | { > file {$demofiles: This will not work, since the loop potentially creates multiple file resources with the same name ("/root/.ssh/test"), which is no

Re: [Puppet Users] Need to put iterative value in a file

2017-05-05 Thread Henrik Lindberg
On 04/05/17 09:26, Quentin lenglet wrote: Ho everyone, I have a lot of difficulty on Puppet for writing my own module and I don't succeed to understand how the module are made on Internet. I need to develop a custom module for put ssh keys into the right file. My ideas is to put an array with th

[Puppet Users] Need to put iterative value in a file

2017-05-04 Thread Quentin lenglet
Ho everyone, I have a lot of difficulty on Puppet for writing my own module and I don't succeed to understand how the module are made on Internet. I need to develop a custom module for put ssh keys into the right file. My ideas is to put an array with the SSH keys and write the key in the file