diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-11-23 12:33:25 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-11-23 12:33:25 -0200 |
commit | 420fe6f3a439142084d8549a05bc79b0d2486556 (patch) | |
tree | e8f620a7010a82de86a81b54bcea45cfcc550aab /manifests | |
parent | 1d61d06dc937e696452f0f8b8a6f9be7ed95a70e (diff) | |
download | puppet-drupal-420fe6f3a439142084d8549a05bc79b0d2486556.tar.gz puppet-drupal-420fe6f3a439142084d8549a05bc79b0d2486556.tar.bz2 |
Install drush from git repo
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 20 |
1 files 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'], + } } |