Deploying puppet modules from Satellite 6 fails with 'Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Class[example::name] is already declared; cannot redeclare at /module/path/init.pp:34 on node my-client.com'

Solution Verified - Updated -

Issue

  • Unable to deploy puppet module which has sub-modules in it, getting below error:

    Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Class[example::Linux] is already declared; cannot redeclare at /etc/puppet/environments/KT_Default_Organization_Lifecycle-env_conten-view_Content_70/modules/firewall/manifests/init.pp:34 on node my-client.com
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
    

Environment

Red Hat Satellite 6.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.