]> gitweb.fluxo.info Git - puppet-php.git/commitdiff
Composer and optional packages
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Dec 2015 11:53:44 +0000 (09:53 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Dec 2015 11:53:44 +0000 (09:53 -0200)
manifests/composer.pp [new file with mode: 0644]
manifests/init.pp

diff --git a/manifests/composer.pp b/manifests/composer.pp
new file mode 100644 (file)
index 0000000..29325f5
--- /dev/null
@@ -0,0 +1,9 @@
+class php::composer {
+  # Composer
+  exec { 'getcomposer':
+    command => '/usr/bin/wget -O - https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer',
+    user    => 'root',
+    cwd     => '/tmp',
+    creates => '/usr/local/bin/composer',
+  }
+}
index 2901bf91ed1e01a4513d176f083e060d55452377..b2fb4ba7487db0b6ef695837243b0b435bb84c33 100644 (file)
@@ -22,6 +22,11 @@ class php {
     ensure => installed,
   }
 
+  # Optional packages
+  package { [ "php5-gd", "php5-imagick" ]:
+    ensure => installed,
+  }
+
   # Not available anymore
   package { 'php5-suhosin':
     ensure => absent,