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


Regards, David





--
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/5375A39A.3020103%40dasz.at.
For more options, visit https://groups.google.com/d/optout.

Reply via email to