aboutsummaryrefslogtreecommitdiff
path: root/manifests/composer.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/composer.pp')
-rw-r--r--manifests/composer.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/composer.pp b/manifests/composer.pp
new file mode 100644
index 0000000..29325f5
--- /dev/null
+++ b/manifests/composer.pp
@@ -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',
+ }
+}