title: Puppet Could not find dependency Class
body: <p>I am trying to pull things out into roles and profiles and am having an issue. I am using puppet apply for all of this as I am using it to finish setting up my Puppet Master. If I define my node in site.pp as shown here:</p>
  
  <pre><code>[root@puppet puppetdbsetup]# cat manifests/site.pp
  node 'puppet' {
    include ::roles::puppetmaster
  }
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>[root@puppet puppetdbsetup]# puppet apply manifests/site.pp --environmentpath /etc/puppet/environments --environment puppetdbsetup --noop
  Notice: Compiled catalog for puppet.belkin in environment puppetdbsetup in 1.29 seconds
  Error: Could not find dependency Class[Puppet::Install] for File[/etc/puppet/hiera.yaml] at /etc/puppet/environments/puppetdbsetup/modules/p
  uppet/manifests/master.pp:31
  </code></pre>
  
  <p>If I run puppetmaster.pp (shown below) with puppet apply directly it doesn't throw the same error.</p>
  
  <pre><code>[root@puppet puppetdbsetup]# cat modules/roles/manifests/puppetmaster.pp
  class roles::puppetmaster {
    #include profiles::base
    include profiles::puppet::master
  }
  </code></pre>
  
  <p>Can anyone tell me why this is and how to fix it? As a side note, all three modules referenced here are hand written... none are Forge modules.</p>
  
  <p><strong>Update 1</strong>
  Here is my puppet::install class:</p>
  
  <pre><code>[root@puppet puppetdbsetup]# cat modules/puppet/manifests/install.pp
  class puppet::install {
  
    package { 'puppet':
      ensure   =&gt; present,
    }
  }
  </code></pre>