title: Include class from another module in puppet
body: <p>I'm making a test manifest for puppet to install a package with choclatey provider from forge.</p>
  
  <p>If I apply with the file test.pp with the code:</p>
  
  <pre><code>class test {
    include chocolatey
    if $::kernel == 'windows' {
      Package { 
        provider =&gt; chocolatey, 
      }
    }
    package { '7zip':
      ensure   =&gt; installed,
    }
  }
  </code></pre>
  
  <p>Is not working and chocolatey doesn't install anything, but if I try without the class with the code:</p>
  
  <pre><code>include chocolatey
  if $::kernel == 'windows' {
    Package { 
      provider =&gt; chocolatey, 
    }
  }
  package { '7zip':
    ensure   =&gt; installed,
  }
  </code></pre>
  
  <p>Why? In the first option, why is not working?</p>