diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-01-12 17:19:09 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-01-12 17:19:09 -0200 |
commit | a93aee07a3fc8d1b6d4dbf44b09d6e922406a97d (patch) | |
tree | e4eb45eabb078defc1dfa78bfdf09d6239e1bbd1 | |
parent | 40f292fabd92e6c10f0e5bfeb7648e8df43e4838 (diff) | |
download | puppet-php-a93aee07a3fc8d1b6d4dbf44b09d6e922406a97d.tar.gz puppet-php-a93aee07a3fc8d1b6d4dbf44b09d6e922406a97d.tar.bz2 |
Composer: must set PATH for correct install
-rw-r--r-- | manifests/composer.pp | 10 |
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', } } |