instance.cfg.in 3.36 KB
Newer Older
1
[buildout]
2 3 4 5 6

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

7 8 9
extends =
    ${instance-postgres:output}
    ${instance-extranet:output}
10
    ${instance-redis:output}
11 12 13 14
    ${instance-environment:output}

parts =
    directories
15 16
    json-configuration
    json-extra-configuration
17
    sh-instance-environment
18 19 20
    postgres-instance
    postgres-promise
    extranet-symlinks
21 22
    extranet-service
    extranet-promise
23 24
    config-staging-py
    request-web-frontend
25 26
    publish-connection-parameters
    redis
27 28 29
    cron
    postgres-backup
    cron-postgres-backup
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46




[json-configuration]
recipe = slapos.cookbook:slapconfiguration.jsondump
json-output = $${buildout:directory}/partition-parameters.json
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}


[json-extra-configuration]
recipe = slapos.cookbook:jsondump
json-output = $${buildout:directory}/abilian-config-extra.json
47 48
#UNOCONV_LOCATION = ${unoconv-repository:location}/unoconv
UNOCONV_LOCATION = ${cloudoooconv:location}/${cloudoooconv:filename}
Marco Mariani's avatar
Marco Mariani committed
49 50
BROKER_URL = redis://:$${redis-requirepass:passwd}@[$${redis:ipv4}]:$${redis:port}/2
CELERY_RESULT_BACKEND = redis://:$${redis-requirepass:passwd}@[$${redis:ipv4}]:$${redis:port}/2
Marco Mariani's avatar
Marco Mariani committed
51
SECRET_KEY = $${csrf-secret-key:passwd}
52
INSTANCE_HOST = $${instance-parameters:ipv6-random}
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72




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

[instance]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
md5sum = d8b833a2054b82b6031a9420008b58fd
mode = 0644



[directories]
recipe = slapos.cookbook:mkdirectory
bin = $${buildout:directory}/bin
etc = $${buildout:directory}/etc
73 74 75 76 77
cron-entries = $${:etc}/cron.d
crontabs = $${:etc}/crontabs
cronstamps = $${:etc}/cronstamps
run = $${:var}/run
scripts = $${:etc}/run
78
srv = $${buildout:directory}/srv
79 80
services = $${:etc}/service
promises = $${:etc}/promise
81
var = $${buildout:directory}/var
82
backup = $${:var}/backup
83 84 85
extranet_spr-instance = $${:var}/extranet_spr-instance
cache = $${:extranet_spr-instance}/cache
data = $${:extranet_spr-instance}/data
86 87
log = $${:var}/log
tmp = $${:var}/tmp
88 89 90
whoosh = $${:data}/whoosh


91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
[cron-simplelogger]
recipe = slapos.cookbook:simplelogger
wrapper = $${directories:bin}/cron_simplelogger
log = $${directories:log}/cron.log


[cron]
recipe = slapos.cookbook:cron
dcrond-binary = ${dcron:location}/sbin/crond
cron-entries = $${directories:cron-entries}
crontabs = $${directories:crontabs}
cronstamps = $${directories:cronstamps}
catcher = $${cron-simplelogger:wrapper}
binary = $${directories:services}/crond



108 109 110 111 112 113 114 115
[request-web-frontend]
<= slap-connection
recipe = slapos.cookbook:requestoptional
name = Web Frontend
# XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
config = url
116
config-url = https://[$${instance-parameters:ipv6-random}]:$${extranet-promise:port}
117 118 119
return = site_url


120
[publish-connection-parameters]
121 122
recipe = slapos.cookbook:publish
url = $${request-web-frontend:connection-site_url}
123
ipv6_url = http://[$${instance-parameters:ipv6-random}]:$${extranet-promise:port}/
124 125 126
postgres_host = $${postgres-promise:hostname}
postgres_port = $${postgres-promise:port}