Commit f1122222 authored by Cédric de Saint Martin's avatar Cédric de Saint Martin Committed by Marco Mariani

Experimental way to customize LAMP stack

parent 936d639e
...@@ -27,3 +27,8 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_} ...@@ -27,3 +27,8 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
[application-configuration] [application-configuration]
location = sites/default/default.settings.php location = sites/default/default.settings.php
[custom-application-deployment]
path = {:_profile_base_location_}/instance.cfg
part-list =
setup-database
[buildout] [buildout]
extends = ${custom-php-part:path}
parts = parts =
certificate-authority certificate-authority
...@@ -14,6 +15,7 @@ parts = ...@@ -14,6 +15,7 @@ parts =
frontend-promise frontend-promise
content-promise content-promise
publish-connection-informations publish-connection-informations
${custom-php-part:part-list}
eggs-directory = ${buildout:eggs-directory} eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = ${buildout:develop-eggs-directory}
......
...@@ -61,6 +61,18 @@ recipe = hexagonit.recipe.download ...@@ -61,6 +61,18 @@ recipe = hexagonit.recipe.download
#If provided tarball does not containt top directory this option shall be changed to false #If provided tarball does not containt top directory this option shall be changed to false
strip-top-level-dir = true strip-top-level-dir = true
[custom-application-deployment]
# Optional part allowing applications using this stack to run a custom
# instance.cfg at the end of Apache/PHP instance deployment.
# To use it in your application, just override those two parameters, like:
# path = /path/to/instance-custom.cfg
# part-list =
# part1
# part2
# See software/drupal/software.cfg for an example.
path =
part-list =
[template] [template]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg url = ${:_profile_base_location_}/instance.cfg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment