Ask Your Question
1

How to handle multiple modules requiring the same packages

asked 2013-07-08 07:09:05 -0500

tubesenf gravatar image

Greetings,

what is the "best practice" for this problem.

  1. Each package in it's own class and include the class

  2. virtual resource for each package and realize

  3. wrapper module: github.com/pdxcat/puppet-module-singleton

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-07-08 16:28:29 -0500

nanliu gravatar image

updated 2013-07-08 16:31:58 -0500

They are all appropriate, and it depends on your usage for what's 'best practice'.

Besides the one you listed, another solution is stdlib function: ensure_packages or ensure_resource.

  1. packages wrapped in class with include class is what github boxen project adapted. You end up with lots of modules, but the assumption that in the future there might be additional things to manage for the application besides the package. Let's say I want to install git, but later adds a deployment key in that module. You can see this thread for more info, especially wfarr and glarizza's comments.

  2. virtual ...

(more)
edit flag offensive delete link more

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-07-08 07:09:05 -0500

Seen: 871 times

Last updated: Jul 08 '13