aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/composer.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/composer.pp b/manifests/composer.pp
index e33894f..4ab3337 100644
--- a/manifests/composer.pp
+++ b/manifests/composer.pp
@@ -6,9 +6,11 @@ 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',
+ # 'The HOME or COMPOSER_HOME environment variable must be set for composer to install correctly'
+ environment => [ 'HOME=/root' ],
+ 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',
}
}