rails dev box should not conflict with other packages #6

Closed
stoune opened this Issue Sep 13, 2012 · 0 comments

2 participants

@stoune

If you wan't to include some additional modules like Redis you quickly will be burried with Puppet modules conflicts.
Almost everyone include build-essential and git-core packages and in this case the puppet module included last will fail.
So your puppet module should respect all resources that was declared by previous and next modules.

How to achive this:
I found a good example at puppet-rvm module:
https://github.com/blt04/puppet-rvm/blob/master/manifests/dependencies/ubuntu.pp

if ! defined(Package['build-essential'])      { package { 'build-essential':      ensure => installed } }

Now your module will not fail if someone already declared package 'build-essential'. This syntax is more verbose, but more reliable.

https://github.com/blt04/puppet-rvm

By doing so your module will be more reliable.

@fxn fxn closed this Sep 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment