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

2017-05-09 Thread Henrik Lindberg
On 09/05/17 16:39, Quentin lenglet wrote: > Hi and thx for your message. > > But now, i have an other problem. I move my lpsc::builder into a file > name builder.pp. Your { } needs to be balanced. It reaches the end and there is a '}' missing. Proper indenting of code and braces help a lot.

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

2017-05-09 Thread Quentin lenglet
Hi and thx for your message. But now, i have an other problem. I move my lpsc::builder into a file name builder.pp. But when i try this code: # == Class: lpsc::config class lpsc::config inherits lpsc { if ($lpsc::ssh_keys == undef) { notify{"Pas de clef à rajouter":} }

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

2017-05-09 Thread Henrik Lindberg
Hi, I made some comments in your code below. Most importantly perhaps is showing you where you have that syntax error. The error you get should tell you both line and the position on the line where the error occurs, but sometimes it is not possible for the parser to recognize a larger block of

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

2017-05-09 Thread Quentin lenglet
Hi My code looks like that: # == Class: lpsc::config class lpsc::config inherits lpsc { define lpsc::builder ( String $ssh_file, String $ssh_key, $ensure => present, ) { file_line { "${ssh_key}": line => "${ssh_key}", path => "${ssh_file}", ensure => $ensure, } } fil

[Puppet Users] On Windows - using a resource from a different class

2017-05-09 Thread jmp242
Not sure - maybe this is a horrible idea, but I've got a package I'm using that would ideally use the same reboot resource as all my other packages, but in this case is in it's own class because there are several steps that are more complicated than just applying the package. On many VMs and tes

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

2017-05-09 Thread Quentin lenglet
Hi, Thx a lot for all your response. I admit that i have some difficulty to understand how maje good module but i need to try harder after all. I will try the different solutions that you send me. Best regards Quentin Lenglet -- You received this message because you are subscribed to the Goo