Install Drush with Puppet

While working on creating Vagrant profile for one of our projects that requires CentOS I have found out that most of puppet drush recepies use drush debian package that of course is not available on CentOS.

The workaround is to use The snippets are:

In Puppetfile (I am using

mod 'drush', :git => 'git://'

In your manifest file:

$drush_dev_build = true
class { 'drush': }

It is very important to set $drush_dev_build variable to true. Otherwise puppet will try to install drush from package that is not desired.