set TMPDIR for pear
[slapos.git] / stack / lapp / instance-postgres.cfg.in
1 [buildout]
2 parts =
3   symlinks
4   publish
5   postgres-instance
6   postgres-promise
7
8
9 # Define egg directories to be the one from Software Release
10 # (/opt/slapgrid/...)
11 eggs-directory = ${buildout:eggs-directory}
12 develop-eggs-directory = ${buildout:develop-eggs-directory}
13 offline = true
14
15
16 [instance-parameters]
17 # Fetches parameters defined in SlapOS Master for this instance
18 recipe = slapos.cookbook:slapconfiguration
19 computer = $${slap-connection:computer-id}
20 partition = $${slap-connection:partition-id}
21 url = $${slap-connection:server-url}
22 key = $${slap-connection:key-file}
23 cert = $${slap-connection:cert-file}
24
25
26 [directories]
27 recipe = slapos.cookbook:mkdirectory
28 bin = $${buildout:directory}/bin
29 etc = $${buildout:directory}/etc
30 services = $${directories:etc}/run/
31 promises = $${directories:etc}/promise/
32 var = $${buildout:directory}/var
33
34
35 [symlinks]
36 recipe = cns.recipe.symlink
37 symlink_target = $${directories:bin}
38 symlink_base = ${postgresql:location}/bin
39
40
41 [postgres-instance]
42 # create cluster, configuration files and a database
43 recipe = slapos.cookbook:postgres
44
45 # Options
46 ipv6_host = $${slap-network-information:global-ipv6}
47 user = postgres
48 port = 5432
49 dbname = db
50 # pgdata_directory is created by initdb, and should not exist beforehand.
51 pgdata-directory = $${directories:var}/data
52 services = $${directories:services}
53 bin = $${directories:bin}
54
55
56 # Deploy promises scripts
57 [postgres-promise]
58 recipe = slapos.cookbook:check_port_listening
59 path = $${directories:promises}/postgres
60 hostname = $${slap-network-information:global-ipv6}
61 port = $${postgres-instance:port}
62
63
64 [publish]
65 recipe = slapos.cookbook:publishurl
66 url = $${postgres-instance:url}
67