virtual class

asked 2015-03-30 05:19:34 -0600

czerwe gravatar image


i try to specify an virutal Class and realize them with the spaceship syntax in different Classes. Unfortunatly i get an error when it comes to the installation.

That's my code:

    component       => 'jdk',
    package_version => '1.7.0_45',
    tag             => 'java_jdk_1.7.0_45'
  Class <| tag == 'java_jdk_1.7.0_45' |> 

When i run this i get the error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Classes cannot be collected on node ...

I found an 4 year old ticket in puppetlabs, but i don't find an usable answer: link:

edit retag flag offensive close merge delete


I think the error message says it all. You can't virtualize classes, only resources.

WhatsARanjit gravatar imageWhatsARanjit ( 2015-03-31 15:55:42 -0600 )edit

Hi, sometimes i have issues with the puppet error messages. I fear that you are right. Thanks for clarification.

czerwe gravatar imageczerwe ( 2015-04-07 03:16:21 -0600 )edit