title: How to Require Another Custom Class Using Puppet
body: <p>If I have two class's in my own puppet module and class 'b' has a dependency on class 'a'. How can I express this in my <code>require</code> statement:</p>
  
  <pre><code># a.pp
  class rehan::a {
      package { 'javaruntime':
          ensure   =&gt; latest,
          provider =&gt; chocolatey
      }
  }
  
  # b.pp
  class rehan::b {
      file { 'C:\foo':
          ensure  =&gt; present,
          require =&gt; Package['?????']
      }
  }
  
  # site.pp
  node default {
      include rehan::a
      include rehan::b
  }
  </code></pre>