]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Handle curl dependency
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Nov 2015 20:27:40 +0000 (18:27 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 23 Nov 2015 20:27:40 +0000 (18:27 -0200)
manifests/init.pp

index 10a8fc59d2a2e8068659a4417d356313b534361a..1ce16438402028b52a036b2a29a0e6a33ebe92ae 100644 (file)
@@ -146,12 +146,20 @@ class drupal(
     backup  => false,
   }
 
+  # TODO: move to a custom module
+  if ! defined(Package["curl"]) {
+    package { 'curl':
+      ensure  => present,
+    }
+  }
+
   # 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'],
   }
 
   # TODO: future