diff options
-rw-r--r-- | manifests/init.pp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 4fcd341..b82ec0c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -160,10 +160,34 @@ class drupal( group => 'root', } + # Composer + exec { 'getcomposer': + command => '/usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer', + user => 'root', + cwd => '/tmp', + creates => '/usr/local/bin/composer', + require => Package['curl'], + } + file { "/usr/local/bin/drush": ensure => '/usr/local/share/drush/drush', owner => root, group => root, - require => Vcsrepo['/usr/local/share/drush'], - } + require => [ Vcsrepo['/usr/local/share/drush'], Exec['getcomposer'] ], + } + + #exec { 'getdrush': + # command => '/usr/bin/wget https://github.com/drush-ops/drush/releases/download/8.0.0-rc3/drush.phar -O /usr/local/bin/drush && chmod +x /usr/local/bin/drush', + # user => 'root', + # cwd => '/tmp', + # creates => '/usr/local/bin/drush', + #} + + #exec { 'composer-drush': + # command => '/usr/local/bin/composer global require drush/drush:dev-master', + # user => 'vagrant', + # creates => '/home/vagrant/composer/vendor/bin/drush', + # environment => [ 'COMPOSER_HOME="/vagrant"' ], + # require => Exec['getcomposer'], + #} } |