Add a simple backup server software release.
[slapos.git] / software / backupserver / instance.cfg.in
1 [buildout]
2 parts =
3   switch-softwaretype
4
5 eggs-directory = ${buildout:eggs-directory}
6 develop-eggs-directory = ${buildout:develop-eggs-directory}
7 offline = true
8
9 [dynamic-template-pullrdiffbackup]
10 recipe = slapos.recipe.template:jinja2
11 template = ${template-pullrdiffbackup:output}
12 rendered = $${buildout:parts-directory}/$${:_buildout_section_name_}/$${:filename}
13 filename = instance-pullrdiffbackup.cfg
14 extensions = jinja2.ext.do
15 context =
16     key slave_instance_list instance-parameter:slave-instance-list
17
18 [switch-softwaretype]
19 recipe = slapos.cookbook:softwaretype
20 default = $${:pullrdiffbackup}
21 # pullrdiffbackup = ${template-pullrdiffbackup:output}
22 pullrdiffbackup = $${dynamic-template-pullrdiffbackup:rendered}
23
24 [slap-connection]
25 # part to migrate to new - separated words
26 computer-id = $${slap_connection:computer_id}
27 partition-id = $${slap_connection:partition_id}
28 server-url = $${slap_connection:server_url}
29 software-release-url = $${slap_connection:software_release_url}
30 key-file = $${slap_connection:key_file}
31 cert-file = $${slap_connection:cert_file}
32
33 # [slap-parameter]
34 # slave-instance-list = []
35
36 [instance-parameter]
37 # Fetches parameters defined in SlapOS Master for this instance.
38 # Always the same.
39 recipe = slapos.cookbook:slapconfiguration.serialised
40 computer = $${slap_connection:computer_id}
41 partition = $${slap_connection:partition_id}
42 url = $${slap_connection:server_url}
43 key = $${slap_connection:key_file}
44 cert = $${slap_connection:cert_file}