Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a puppet module installed that is called ntp.

A node do I define by

node testip { include myconfig::ntpp }

and in /etc/puppet/modules/myconfig/manifests/init.pp have I

class myconfig::ntpp {
  include common
  class {'ntp':
      server_list => $common::data::ntpServerList

This works perfectly.

But if I replace myconfig::ntpp with myconfig::ntp I get

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Class[Myconfig::Ntp] is already declared; cannot redeclare on node testip


Is it possible to have my node look like?:

node testip { include myconfig::ntp }
share|improve this question
up vote 4 down vote accepted

This is a design issue in puppet on how puppet tries to resolve the classnames. See this ticket for more info or this link regarding namespaces.

And you should try to access your top level NTP modules with

class { "::ntp":
   server_list => ...
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.