buildout.cfg 4.15 KB
Newer Older
1 2 3
[buildout]
parts =
  apache-php-postgres
4 5
  rdiff-backup
  dropbear
6
  eggs
7
  instance
Marco Mariani's avatar
Marco Mariani committed
8
  psycopg2
9

10 11
  instance-apache-php
  instance-postgres
12

13 14 15 16
#Contains the importer and exporter recipes for postgres
  instance-postgres-import
  instance-postgres-export

17 18
  instance-default-root

19

20
extends =
21
  ../resilient/buildout.cfg
22 23 24 25 26 27 28 29
  ../../component/apache/buildout.cfg
  ../../component/apache-php/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/dcron/buildout.cfg
  ../../component/gzip/buildout.cfg
  ../../component/logrotate/buildout.cfg
  ../../component/lxml-python/buildout.cfg
  ../../component/postgresql/buildout.cfg
30
  ../../component/rdiff-backup/buildout.cfg
31
  ../../component/stunnel/buildout.cfg
32
  ../../component/dropbear/buildout.cfg
33 34 35
  ../slapos.cfg


36 37 38 39 40 41 42 43 44 45
#----------------
#-- Application-specific part (maarch, etc.)

[application]
recipe = hexagonit.recipe.download
strip-top-level-dir = true


#----------------
#-- Instance-level buildout profiles.
46

47
[instance]
48
recipe = slapos.recipe.template
49 50
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
51
md5sum = 1aaf3ea7b14e09e66904bdb80e3cfe2f
52 53
mode = 0644

54
[instance-apache-php]
55
recipe = slapos.recipe.template
56
url = ${:_profile_base_location_}/apache/instance-apache-php.cfg.in
57 58
output = ${buildout:directory}/instance-apache-php.cfg
md5sum = fb34918c73ba242ffc08dfd7745367b3
59 60
mode = 0644

61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
[instance-apache-backup]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/apache/instance-apache-backup.cfg.in
output = ${buildout:directory}/instance-apache-backup.cfg
md5sum = 48f969d82319a9d145570f5f0fd27672
mode = 0644

[template-resilient-lapp]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/template-resilient.cfg.in
rendered = ${buildout:directory}/instance-resilient.cfg

context = key templateapache instance-apache-php:output
          key dropbear dropbear:location
          key buildout buildout:bin-directory

import-list = file parts template-parts:destination
              file replicated template-replicated:destination

80
md5sum = 33215ed0f1a900c04d71ff9c309d9193
81 82 83
mode = 0644
 

84
[instance-postgres]
85
recipe = slapos.recipe.template
86
url = ${:_profile_base_location_}/postgres/instance-postgres.cfg.in
87
output = ${buildout:directory}/instance-postgres.cfg
Marco Mariani's avatar
Marco Mariani committed
88
md5sum = 4d3cc57a1f538519ac0ce1fc510f05db
89 90
mode = 0644

91 92 93 94 95 96
[instance-postgres-import]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/postgres/instance-postgres-import.cfg.in
output = ${buildout:directory}/instance-postgres-import.cfg
md5sum = feb43a65eefd9c5dea8e7d3551465956
mode = 0644
97

98 99 100 101 102 103
[instance-postgres-export]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/postgres/instance-postgres-export.cfg.in
output = ${buildout:directory}/instance-postgres-export.cfg
md5sum = 7bce31bc22a731a8fc6119aee96586f5
mode = 0644
104

105 106 107 108

#----------------
#-- Postgres driver for Python recipes.

Marco Mariani's avatar
Marco Mariani committed
109 110 111
[psycopg2-env]
PATH = ${postgresql:location}/bin:%(PATH)s

112

Marco Mariani's avatar
Marco Mariani committed
113 114 115 116
[psycopg2]
recipe = zc.recipe.egg:custom
egg = psycopg2
define = PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3
Marco Mariani's avatar
Marco Mariani committed
117
environment = psycopg2-env
Marco Mariani's avatar
Marco Mariani committed
118 119 120 121 122 123 124
include-dirs =
    ${postgresql:location}/include
library-dirs =
    ${postgresql:location}/lib
rpath = 
    ${postgresql:location}/lib

125 126 127 128 129 130
[instance-default-root]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-default-root.cfg.in
output = ${buildout:directory}/instance-default-root.cfg
md5sum = 53c9020f7a0b5203f976e069e455787b
mode = 0644
Marco Mariani's avatar
Marco Mariani committed
131

132 133 134 135 136 137 138 139 140 141 142 143 144 145
#----------------
#--
#-- 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:

[custom-application-deployment]
# path = /path/to/instance-custom.cfg
# part-list = part1 part2
# See software/maarch/software.cfg for an example.
path =
part-list =

#----------------
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
#-- Dummy parts in case no application configuration file is needed

[application-template]
filename =
location =

[application-configuration]
location =

#----------------

[eggs]
recipe = zc.recipe.egg
eggs =
  ${lxml-python:egg}
  ${psycopg2:egg}
  slapos.toolbox
  cns.recipe.symlink
164