instance.cfg 1.19 KB
Newer Older
1 2
[buildout]
parts =
3
  directory
4
  instance
5
  configtest
6 7 8 9

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}

10 11 12 13 14 15 16
# Create all needed directories
[directory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc/
var = $${buildout:directory}/var/
srv = $${buildout:directory}/srv/
bin = $${buildout:directory}/bin/
17
service = $${:etc}/service
18 19 20


# Deploy Apache (old way, with monolithic recipe)
21 22
[instance]
recipe = ${instance-recipe:egg}:${instance-recipe:module}
23
httpd_home = ${apache-2.2:location}
24
httpd_binary = ${apache-2.2:location}/bin/httpd
25 26
logrotate_binary = ${logrotate:location}/usr/sbin/logrotate
openssl_binary = ${openssl:location}/bin/openssl
Rafael Monnerat's avatar
Rafael Monnerat committed
27
dcrond_binary = ${dcron:location}/sbin/crond
28 29
varnishd_binary = ${varnish-2.1:location}/sbin/varnishd
stunnel_binary = ${stunnel:location}/bin/stunnel
Rafael Monnerat's avatar
Rafael Monnerat committed
30
rdiff_backup_binary = ${buildout:bin-directory}/rdiff-backup
31
gcc_binary = gcc
32
binutils_directory = ${binutils:location}/bin/
33 34 35 36 37 38 39


# Create wrapper for "apachectl conftest" in bin
[configtest]
recipe = slapos.cookbook:wrapper
command-line = $${instance:httpd_binary} -f $${directory:etc}/apache_frontend.conf -t
output = $${directory:bin}/apache-configtest