backup => false,
}
+ # Composer
+ exec { 'getcomposer':
+ command => '/usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer',
+ user => 'root',
+ cwd => '/tmp',
+ creates => '/usr/local/bin/composer',
+ }
+
#vcsrepo { "/usr/local/share/drush":
# ensure => present,
# provider => git,
# group => 'root',
#}
- # Composer
- exec { 'getcomposer':
- command => '/usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php && /bin/mv composer.phar /usr/local/bin/composer',
- user => 'root',
- cwd => '/tmp',
- creates => '/usr/local/bin/composer',
- }
-
#file { "/usr/local/bin/drush":
# ensure => '/usr/local/share/drush/drush',
# owner => root,
# require => [ Vcsrepo['/usr/local/share/drush'], Exec['getcomposer'] ],
#}
- exec { 'getdrush':
- command => '/usr/bin/wget https://github.com/drush-ops/drush/releases/download/8.0.0/drush.phar -O /usr/local/bin/drush && chmod +x /usr/local/bin/drush',
- user => 'root',
- cwd => '/tmp',
- creates => '/usr/local/bin/drush',
- }
-
#exec { 'composer-drush':
# command => '/usr/local/bin/composer global require drush/drush:dev-master',
# user => 'vagrant',
# environment => [ 'COMPOSER_HOME="/vagrant"' ],
# require => Exec['getcomposer'],
#}
+
+ exec { 'getdrush':
+ command => '/usr/bin/wget https://github.com/drush-ops/drush/releases/download/8.0.0/drush.phar -O /usr/local/bin/drush && chmod +x /usr/local/bin/drush',
+ user => 'root',
+ cwd => '/tmp',
+ creates => '/usr/local/bin/drush',
+ }
}