On Tue, Aug 2, 2016 at 2:57 PM, Joseph Lorenzini <[email protected]> wrote:

> Hi all,
>
> I am having a problem with external node classier. Here's the yaml output
> from the enc executable.
>
> https://gist.github.com/jaloren/f7599e96c6a8c47591eb395f4680d48c
>
> The yaml output inludes a parameterized class. When puppet server gets
> this yaml output, it throws the following exception.
>
> *Could not retrieve catalog from remote server: Error 400 on SERVER:
> Invalid tag '{"apache::server"=>{"version"=>"2.4.6-40.el7.centos.4"}}' on
> node node2*
>
>

classes is a hash, but in your YAML you have a trailing "-" behind the
apache key which is translated as an array.... in short, this should
work....

classes:
  apache::server:
    version: 2.4.6-40.el7.centos.4
environment: test

Note, there is no "-" behind "apache:"  See
https://docs.puppet.com/guides/external_nodes.html#classes for more
information

Craig

-- 
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/CACxdKhHLkoZ6QqkkL6vCVZXB0K2t%2BBUsCg5bOpLqFYUrNJWz1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to