title: Puppet cannot find parent resource type
body: <p>I'm trying to set up Puppet to use templates in order to create configuration files for our servers. The current way I am doing this is by using inheritance to pass default values to a class. This allows me to properly separate the data from the rest of the code. An example of this structure is as follows:</p>
  
  <pre><code>class grading_properties(
            $home='tomcat-deploy',
            $financialScoreHigh = $grading_properties_defaults::financialScoreHigh,
            $financialScoreLow = $grading_properties_defaults::financialScoreLow,
            $qualityScoreHigh = $grading_properties_defaults::qualityScoreHigh,
            $qualityScoreLow = $grading_properties_defaults::qualityScoreLow,
            )inherits grading_properties_defaults {
  
    file{"${base}/${home}/company-conf/grading.properties" :
    ensure  =&gt; present,
    mode    =&gt; '0755',
    owner   =&gt; 'root',
    group   =&gt; 'root',
    content =&gt; template("company/company-conf_pr/grading.properties.erb")  
    } 
  }
  </code></pre>
  
  <p>This class is responsible for generating the "grading.properties" config file based on the "grading.properties.erb" template. The "grading_properties_defaults" class which it inherits looks like this:</p>
  
  <pre><code>class grading_properties_defaults{
    $financialScoreHigh = 4
    $financialScoreLow = 7
    $qualityScoreHigh = 6000
    $qualityScoreLow = 4000
  }
  </code></pre>
  
  <p>The problem I am having is when I try to create the class using </p>
  
  <pre><code>class{ "grading_properties" :
    financialScoreHigh =&gt; 10,
  }
  </code></pre>
  
  <p>from a class in the same module, I get the following error from puppet apply:</p>
  
  <p><code>Error: Could not find parent resource type 'grading_properties_defaults' of type hostclass in production at /home/git/puppet/modules/company/manifests/grading_properties.pp:1 on node sv1.company.qa0</code></p>
  
  <p>What is the proper way to reference a class in the same module?</p>