doug livesey
2012-Jan-17 16:40 UTC
[Puppet Users] multiple versions of a package (gems) in puppet
Hi -- I''m setting our servers up to use puppet, and have hit a bit of a sticking point with the gems we require. For some of our servers, we need to install multiple versions of the same gem, so I tried something like this: class gems::gems::rails { define gempackage::rails ( $version = $title ) { Class[ "gems::params" ] -> Gempackage::Rails[ $version ] package { "rails-${ version }": name => "rails", ensure => $version, provider => gem, } } gempackage::rails { $gems::params::railsversions: } } The variable $gems::params::railsversions is something like [ "2.1.1", "2.3.4" ] for one of the (ancient!) cases. What I was hoping to do, here, was to have the package installed for each version. It wouldn''t allow a package of the same title to be declared twice, so I made that unique, but am still failing on the name of the package not being unique. I can''t be the only person who needs to do something like this, but I''ve failed to google up anything that might help me get the multiple versions installed. Could anyone please advise me on how I might get around this problem? I''m completely stumped! Thanks in advance for any & all assistance, Doug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.