title: Puppet calls same service in multiple module?
body: <p>I have a puppet module A. 
  In that module I have a service restart for a change in file.</p>
  
  <pre class="lang-puppet prettyprint-override"><code>class A::test1 { 
    include ::corednsclient
    service { 'sshd':
      ensure =&gt; running,
      enable =&gt; true,
    }
  }
  </code></pre>
  
  <p>Now , I have a different puppet module B.
  In that module also I have to restart the same service for a change in another file.</p>
  
  <p>Now , the problem is that I'm getting the following:</p>
  
  <pre class="lang-none prettyprint-override"><code>Duplicate declaration error
  </code></pre>
  
  <p>when I'm doing  <strong>/opt/puppetlabs/bin/puppet apply --modulepath=/abc xyz/site.pp</strong> </p>
  
  <p>If I runs each module independently as <strong>puppet apply -e 'include moduleA'</strong>
   and 
   <strong>puppet apply -e 'include moduleB'</strong> , Both would works fine. 
  But puppet apply globally seems to be failing.</p>
  
  <p>Any help would be highly appreciated !</p>
  
  <pre class="lang-none prettyprint-override"><code>Error: Evaluation Error: Error while evaluating a Resource Statement,
   Duplicate declaration: Service[sshd] is already declared in file 
   /export/content/ucm/puppet/modules/coresshd/manifests/configure.pp:28; cannot
   redeclare at 
   /export/content/ucm/puppet/modules/corednsclient/manifests/daemon_reload.pp:10 at 
   /export/content/ucm/puppet/modules/corednsclient/manifests/daemon_reload.pp:10:3 on 
   node lor1-0002276.int.xxx.com .
  </code></pre>