class php::composer { # TODO: future package { 'composer': ensure => absent, } # Composer exec { 'getcomposer': # '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', } }