Puppet cannot find parent resource type -


i'm trying set puppet use templates in order create configuration files our servers. current way doing using inheritance pass default values class. allows me separate data rest of code. example of structure follows:

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  => present,   mode    => '0755',   owner   => 'root',   group   => 'root',   content => template("company/company-conf_pr/grading.properties.erb")     }  } 

this class responsible generating "grading.properties" config file based on "grading.properties.erb" template. "grading_properties_defaults" class inherits looks this:

class grading_properties_defaults{   $financialscorehigh = 4   $financialscorelow = 7   $qualityscorehigh = 6000   $qualityscorelow = 4000 } 

the problem having when try create class using

class{ "grading_properties" :   financialscorehigh => 10, } 

from class in same module, following error puppet apply:

error: not find parent resource type 'grading_properties_defaults' of type hostclass in production @ /home/git/puppet/modules/company/manifests/grading_properties.pp:1 on node sv1.company.qa0

what proper way reference class in same module?

it turns out need qualify class names in order puppet find them. e.g. class grading_properties_defaults should modulename::grading_properties_defaults


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -