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?
-- Wei