you can use ensure for a particular version as well.
ensure => '11.14',
On Friday, 16 October 2015 16:50:19 UTC+8, 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?
>
>
>
>
> -- Wei
>
--
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/cfd910b7-778f-42ba-ab90-b782eaa32ae5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.