title: Puppet Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class
body: <p>I'm trying to deploy an application called Bag-Of-Holding via Puppet using the instruction as posted on github - <a href="https://github.com/ribeiroit/boh-puppet" rel="nofollow noreferrer">https://github.com/ribeiroit/boh-puppet</a></p>
  
  <p>I run the command: <code>sudo puppet apply /etc/puppet/manifests/site.pp</code>
  and I get the error below: </p>
  
  <blockquote>
    <p>Error: Evaluation Error: Error while evaluating a Resource Statement, Could not find declared class boh at /etc/puppet/manifests/site.pp:2:2 on node lab1-hp-elitebook-8570p</p>
  </blockquote>
  
  <p>It appears the puppet is having hard time finding the class <code>boh</code> which is already in the manifest folder</p>
  
  <p>This is my directory tree:</p>
  
  <pre><code>/etc/puppet
  ├── code
  ├── manifests
  └── modules
      └── boh-puppet
          ├── manifests
          └── templates
  </code></pre>
  
  <p>my <code>site.pp</code> file is located in <code>/etc/puppet/manifests</code>
  and it looks like this:</p>
  
  <pre><code>node 'lab1-hp-elitebook-8570p' {
    class { 'boh':
      python_version   =&gt; 3,
      environment      =&gt; 'dev',
      language         =&gt; 'en',
      debug            =&gt; 'True',
      create_superuser =&gt; 'true',
      pkg_checksum     =&gt; '86b0164f7fd6c5e4aa43c8f056f08cea'
    }
  }
  </code></pre>
  
  <p>And <code>init.pp</code> file has the <code>class {boh }</code> and that's located at: 
  <code>/etc/puppet/modules/boh-puppet/manifests</code></p>
  
  <p>Any ideas how to fix this?</p>