]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Change drush install strategy
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Nov 2015 16:44:39 +0000 (14:44 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Nov 2015 16:44:39 +0000 (14:44 -0200)
manifests/init.pp

index a2318c8a9f35a333f3d185e7a4c36bca4e2858e6..78e3fcbef83acf6c6e5f0a5bcaf0b04320295ec3 100644 (file)
@@ -168,20 +168,20 @@ class drupal(
     creates => '/usr/local/bin/composer',
   }
 
-  file { "/usr/local/bin/drush":
-    ensure  => '/usr/local/share/drush/drush',
-    owner   => root,
-    group   => root,
-    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',
+  #file { "/usr/local/bin/drush":
+  #  ensure  => '/usr/local/share/drush/drush',
+  #  owner   => root,
+  #  group   => root,
+  #  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/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',