aboutsummaryrefslogtreecommitdiff
path: root/manifests/examples/laravel.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-05 22:16:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-05 22:16:31 -0300
commit364912a73905340ea2d48598afbd990914b2e0d9 (patch)
treeff56c78dafdac7b8ed1303f7b574b4d560382292 /manifests/examples/laravel.pp
parent85d41ce300772173c312b3dcc9afb4de862a3955 (diff)
downloadpuppet-bootstrap-364912a73905340ea2d48598afbd990914b2e0d9.tar.gz
puppet-bootstrap-364912a73905340ea2d48598afbd990914b2e0d9.tar.bz2
Adds examples
Diffstat (limited to 'manifests/examples/laravel.pp')
-rw-r--r--manifests/examples/laravel.pp48
1 files changed, 48 insertions, 0 deletions
diff --git a/manifests/examples/laravel.pp b/manifests/examples/laravel.pp
new file mode 100644
index 0000000..3554ffd
--- /dev/null
+++ b/manifests/examples/laravel.pp
@@ -0,0 +1,48 @@
+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,
+}