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":} } else { notify{"On peut rajouter une clef ${lpsc::ssh_keys}":} $demofiles = "/root/.ssh/test" $lpsc::ssh_keys.each |String $key|{ lpsc::builder{"$key": ensure => 'present', ssh_file => $demofiles, ssh_key => "$key", } } } Puppet tell me that i have an "Syntax error at end of file" config, which is this file. Best, Quentin Lenglet -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4bbc2031-1668-4c4a-bdc4-f8c2ae96e102%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.