From 420fe6f3a439142084d8549a05bc79b0d2486556 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 23 Nov 2015 12:33:25 -0200 Subject: Install drush from git repo --- manifests/init.pp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 9d71ecf..20e08c1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,12 +4,12 @@ class drupal( $www_folder = hiera('drupal::www_folder', '/var/www/data') ) { # We use drupal source from upstream - package { "drupal6": + package { [ "drupal6", "drush" ]: ensure => absent, } # Needed packages - package { [ "drush", "php5-gd", "php5-imagick" ]: + package { [ "php5-gd", "php5-imagick" ]: ensure => installed, } @@ -150,4 +150,20 @@ class drupal( force => true, backup => false, } + + vcsrepo { "/usr/local/share/drush": + ensure => present, + provider => git, + source => 'https://github.com/drush-ops/drush', + revision => '401f034c59b031221d900bec7c2ba81d1331c284', + owner => 'root', + group => 'root', + } + + file { "/usr/local/bin/drush": + ensure => '/usr/local/share/drush/drush', + owner => root, + group => root, + require => Vcrepo['/usr/local/share/drush'], + } } -- cgit v1.2.3