rails dev box should not conflict with other packages #6

stoune opened this Issue Sep 13, 2012 · 0 comments

2 participants


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:

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.


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