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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -