Runner: Merge development into master for release
[slapos.git] / software / unstable / mioga / instance-postgres.cfg
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 [rootdirectory]
27 recipe = slapos.cookbook:mkdirectory
28 bin = $${buildout:directory}/bin
29 etc = $${buildout:directory}/etc
30 services = $${rootdirectory:etc}/run/
31 promises = $${rootdirectory:etc}/promise/
32 var = $${buildout:directory}/var
33
34
35 [symlinks]
36 recipe = cns.recipe.symlink
37 symlink_target = $${rootdirectory:bin}
38 symlink_base = ${postgresql:location}/bin
39
40 [postgres-instance]
41 # create cluster, configuration files and a database
42 recipe = slapos.cookbook:postgres
43
44 # Options
45 ipv6_host = $${slap-network-information:global-ipv6}
46 user = mioga
47 port = 5432
48 dbname = mioga2
49 # pgdata_directory is created by initdb, and should not exist beforehand.
50 pgdata-directory = $${rootdirectory:var}/data
51 services = $${rootdirectory:services}
52 bin = $${rootdirectory:bin}
53
54
55 # Deploy promises scripts
56 [postgres-promise]
57 recipe = slapos.cookbook:check_port_listening
58 path = $${rootdirectory:promises}/postgres
59 hostname = $${slap-network-information:global-ipv6}
60 port = $${postgres-instance:port}
61
62
63 [publish]
64 recipe = slapos.cookbook:publishurl
65 url = $${postgres-instance:url}