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.
Best,
- henrik
> 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 [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/puppet-users/4bbc2031-1668-4c4a-bdc4-f8c2ae96e102%40googlegroups.com
>
<https://groups.google.com/d/msgid/puppet-users/4bbc2031-1668-4c4a-bdc4-f8c2ae96e102%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/oespdi%24hup%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.