voxpupuli / puppet-wildfly

Puppet module to install, configure and manage Wildfly (8/9/10+), JBoss EAP (6.1+/7.0+) and some Wildfly based products like apiman, Keycloak and Infinispan.
Apache License 2.0
29 stars 78 forks source link

Need a way to install module with multiple jar files as source #277

Open nddipiazza opened 3 years ago

nddipiazza commented 3 years ago

All your examples look like this

wildfly::config::module {​ 'org.apache.ignite':
  source       => 'http://my.source.com/source-file.jar',
  dependencies => ['javax.api', 'javax.transaction.api']
}​

what about when there are multiple jar files as part of a module?

such as

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.ignite">
<resources>
    <resource-root path="ignite-core-2.8.1.jar"/>
    <resource-root path="ignite-indexing-2.8.1.jar"/>
    <resource-root path="ignite-shmem-1.0.0.jar"/>
    <resource-root path="cache-api-1.0.0.jar"/>
</resources>
<dependencies>
    <module name="javax.api"/>
    <module name="sun.jdk" />
    <module name="com.h2database.h2" />
</dependencies>
</module>
jairojunior commented 3 years ago

Hi,

The rationale behind not direct supporting tarball/archive as a source for a module was to avoid dependencies of other modules to extract it.

Basically you have two options for the scenario you described:

1) Install the files as dependencies and require then in your module.

2) Download/copy other JARs manually using file module.