jboss::create_inst {
tfel0:
version => $jboss_version,
naming_port => "1099",
db_info => [ db_name => "foo1", db_port => "1111" ];
....
}
define jboss::create_inst($version, $naming_port, $db_info = [] ) {
....
file {
"/opt/jboss/jboss-$version/server/$name/deploy/mysql-ds.xml":
content => template("jboss/jboss_home/deploy/mysql-ds.xml.erb");
}
....
}
and in the template, put...
<jndi-name><%= db_info["db_name"] %></jndi-name>
You get the idea...
Doug.
no. Puppet currently doesn't support complexer data structures like hashes.
cheers pete
Is this possible now?