title: Puppet duplicate declaration: Class[Mongodb] is already declared; cannot redeclare
body: <p>Possibly doing something extremely stupid here but I can't find any documentation on what could be causing this.</p>
  
  <p>Setting up a Vagrant VM using Puppet and I'm trying to override a specific setting within the <a href="https://github.com/puppetlabs/puppetlabs-mongodb" rel="noreferrer">mongodb</a> module.</p>
  
  <p>As far as I'm aware the README.md syntax is incorrect in that repo (Although I have tried that too).</p>
  
  <p>My Manifest:</p>
  
  <pre><code>include mongodb
  
  class { 'mongodb' :
  port =&gt; '1111';
  }
  </code></pre>
  
  <p>When running <code>vagrant up</code> I get the following Error:</p>
  
  <pre><code>Duplicate declaration: Class[Mongodb] is already declared; cannot redeclare at /tmp/vagrant-puppet/manifests/mongodb.pp:5 on node www
  </code></pre>
  
  <p>If I remove the configuration override it works perfectly but there's no reason why it doesn't.</p>