Puppet - setting variables -
i have in puppet fle solr:
define solr::core( $solr_home = "/opt/solr", $schema_xml = "searchapi_schema.xml", $solrconfig_xml = "searchapi_solrconfig.xml", $user = 'jetty' ) { ..
i in node override variables $schema_xml , $solrconfig_xml, how do in nice way?
i tried this:
node web02 inherits webbasenode { $schema_xml = "apachesolr_schema.xml" $solrconfig_xml = "apachesolr_solrconfig.xml" ...
but did not work out.
it looks like, need definition accept parameters. example
define solr::core ($schema_xml = "searchapi_schema.xml", $solrconfig_xml = "searchapi_solrconfig.xml"){ .... }
in node, call definition updated parameters. example
node web02 inherits webbasenode { solr::core { schema_xml => "apachesolr_schema.xml", solrconfig_xml => "apachesolr_solrconfig.xml" } }
Comments
Post a Comment