aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-01-12 17:19:09 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-01-12 17:19:09 -0200
commita93aee07a3fc8d1b6d4dbf44b09d6e922406a97d (patch)
treee4eb45eabb078defc1dfa78bfdf09d6239e1bbd1
parent40f292fabd92e6c10f0e5bfeb7648e8df43e4838 (diff)
downloadpuppet-php-a93aee07a3fc8d1b6d4dbf44b09d6e922406a97d.tar.gz
puppet-php-a93aee07a3fc8d1b6d4dbf44b09d6e922406a97d.tar.bz2
Composer: must set PATH for correct install
-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',
}
}