Hi Wei,
On 16/10/2015 09:50, Wei Chen wrote:
Hi,
I try to use the puppet to configure the Jboss EAP 6.X. My first
init.pp looks as follow:
...
class jboss_rpm_install {
# Required RPM package
$jboss_core_rpm = [
"jbossas-appclient",
"jbossas-bundles",
"jbossas-core",
"jbossas-hornetq-native",
"jbossas-jbossweb-native",
"jbossas-modules-eap",
"jbossas-product-eap",
"jbossas-standalone",
"jbossas-welcome-content-eap"
]
package { $jboss_core_rpm: ensure => "installed" }
}
...
But in this form I can't set the version of the many RPMs. So I change
to the second form as follow:
...
package {
"jbossas-appclient": ensure => latest;
"jbossas-bundles": ensure => latest;
"jbossas-core": ensure => latest;
"jbossas-hornetq-native": ensure => latest;
"jbossas-jbossweb-native" : ensure => latest;
"jbossas-modules-eap": ensure => latest;
"jbossas-product-eap": ensure => latest;
"jbossas-standalone": ensure => latest;
"jbossas-welcome-content-eap": ensure => latest;
}
...
This works. But I prefer the first form. How to do?
As long as you want to set all packages to the same version,
package { $jboss_core_rpm: ensure => latest }
should work as well.
Cheers, D.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/5620CD54.3020703%40dasz.at.
For more options, visit https://groups.google.com/d/optout.