On Friday, November 6, 2009 5:24:54 PM UTC-5, Douglas wrote:
>
> Can I do this in puppet? I think the example is pretty self explanatory.
>
>     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.
>

Is this possible now? 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/n6PxuDmxlq4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to