On Friday, May 16, 2014 1:35:22 AM UTC-4, David Schmitt wrote:
>
> Hi, 
>
> On 16.05.2014 04:37, Ugo Bellavance wrote: 
> > I worked on this tonight, but now I get an error when I try to apply it: 
> > 
> > Could not retrieve catalog from remote server: Error 400 on SERVER: 
> > Invalid parameter dest at /etc/puppet/manifests/nodes/nodes.pp:29 
> > 
> > If I comment out this variable, another one generate an Invalid 
> > parameter error... 
> > 
> > I tried debugging it, but I think I need a little help. 
> > 
> > Here is my init.pp: 
> > 
> > class lsyncd { 
> [...] 
> > } 
> > 
> > define lsyncd::sync ( 
> >    $method, 
> >    $source, 
> >    $dest, 
> >    $desthost,) 
> >    { 
> [...] 
> > } 
> > 
> > Here is how I call it: 
> > 
> > node "test.example.com" { 
> >     class { "lsyncd": 
> >         title    => ["src1"], 
> >         method   => ["default.rsyncssh"], 
> >         source   => ["/var/www/test/src"], 
> >         dest     => ["/var/www/test/dst1"], 
> >         desthost => ["www.example.com"], 
> >         append   => ["true"] 
> >     } 
> > } 
>
> You want to say it this way: 
>
>    class { lsyncd: ; } 
>    lsyncd::sync { 
>      "src1": 
>        method   => "default.rsyncssh", 
>        source   => "/var/www/test/src", 
>        dest     => "/var/www/test/dst1", 
>        desthost => "www.example.com", 
>        append   => "true"; 
>    } 
>
> For details see the language guide at 
>
> > 
> http://docs.puppetlabs.com/puppet/latest/reference/lang_defined_types.html 
>
> Thanks,

Do I need the puppet concat module to do that?  I am on  puppet version 2.6 
(using EPEL repo, "upgrading" to 2.7 soon.  I know it is not what this 
group recommends, but it's the best for me right now).

Error:

Could not retrieve catalog from remote server: Error 400 on SERVER: 
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid 
resource type concat at /etc/puppet/modules/lsyncd/manifests/init.pp:59 on 
node blabla

-- 
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/f1f0dd47-4fdd-4124-ac48-77e45609a37b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to