Ah cracked it! class jdk::32bit inherits jdk {
Package['jdk'] { ensure => undef } package { "jdk.i586": ensure => present } } On 21 June 2013 12:15, Dick Davies <rasput...@hellooperator.net> wrote: > i was hoping I could do this with the right ensure parameter on Package, > but I'm hitting a wall. > > We've got 64-bit servers running tomcats on RHEL that need to be 32-bit > (external vendor, JNI, funny story). > > 2.7 Puppetmaster and the yum repo hosts the Oracle JDKs. > > > > Currently we just push out what we want with: > > class jdk { > package { "jdk": ensure => present } > } > > which essentially does 'yum install jdk' (some other bits too, but > they're not relevant). > > I was hoping to include something like > > class jdk::32bit inherits jdk { > > Package['jdk'] { ensure => "1586" } > } > > for these servers, but that seems to run the equivalent of : yum > install jdk-i586 > > Is there a way to coerce the resource to install the right thing, or > am I going to have > to go with an Exec ? -- 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.