class laravel { include php include database include nodo::utils::web include websites # Laravel requirement package { 'php5-mcrypt': ensure => installed, } apache::site { "laravel": docroot => "/vagrant/laravel/public", server_alias => 'vagrant localhost', use => [ "Site laravel" ], tag => 'all', owner => vagrant, group => vagrant, mpm_user => vagrant, mpm_group => vagrant, password => '$5$iu01VZigQlBm5OUb$2W9AmvI/tjwxSTYYMOHOmwYpann.PTl8jdcycp.fpl4', shell => '/bin/bash', } database::instance { "laravel": password => 'laravel', tag => 'all', } # TODO #curl -sS https://getcomposer.org/installer | php #sudo mv composer.phar /usr/local/bin/composer #cd /vagrant && rm -rf laravel #composer create-project laravel/laravel laravel --prefer-dist exec { 'create-laravel': command => '/usr/local/bin/composer create-project laravel/laravel laravel --prefer-dist', user => 'vagrant', cwd => '/vagrant', } } # # Class instantiations # class { 'laravel': stage => main, }