Ask Your Question
2

Best way to install multiple versions of a module?

asked 2013-10-15 13:52:48 -0500

michaelhorka gravatar image

We are trying to configure particular servers in our infrastructure with more than one version of some packages. We have been trying to figure out the best way to go about achieving this. An example would explain better:

We want IE 8, 9 and 10 and Chrome 27 and 28 (just examples) installed on a server to test our web apps. We have a node with a yaml config as follows:

node1.yaml

---
classes:
  - module
  - othermodule
  - ie8
  - ie9
  - ie10
  - chrome27
  - chrome28
module::version: '5.2'
othermodule::version: '6.7'

For most of our modules we use parameterized classes and pass ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-15 14:00:08 -0500

GregLarkin gravatar image

updated 2013-10-17 13:06:56 -0500

Is the module version number included in the title for each module declaration? As long as you make the title unique, you can declare it multiple times. Based on your follow-up comment, I would suggest doing something like this:

classes:
  - module
  - othermodule
  - ie
  - chrome
ie::version:
  - '8'
  - '9'
  - '10'
chrome::version:
  - '26'
  - '27'
module::version: 
  - '5.2'
  - '5.4'
othermodule::version: 
  - '6.7'
  - '6.8'
  - '6.9'

With one parameter declared in your Hiera data, Puppet 3.x will pass it to the declared class automatically, unlike in Puppet <3.x where you had to call Hiera functions directly.

Now ... (more)

edit flag offensive delete link more

Comments

The example I posted is what we are currently implementing. It works just fine. However, what I was hoping for is a way to pull the version number out of ...(more)

michaelhorka gravatar imagemichaelhorka ( 2013-10-17 08:08:58 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-10-15 13:52:48 -0500

Seen: 709 times

Last updated: Oct 17 '13