instance.cfg.in 2.11 KB
Newer Older
1 2
[buildout]
parts =
3
  switch-softwaretype
4 5

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

8 9 10 11 12 13
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
default = ${template-kvm:output}
kvm = ${template-kvm:output}
nbd = ${template-nbd:output}
frontend = ${template-frontend:output}
14

15
kvm-resilient = $${dynamic-template-kvm-resilient:rendered}
16 17 18
kvm-import = ${template-kvm-import:output}
kvm-export = ${template-kvm-export:output}

19
# Used for the test of resiliency. The system wants a "test" software_type.
20
test = $${dynamic-template-kvm-resilient-test:rendered}
21

22 23
frozen = ${instance-frozen:output}
pull-backup = ${template-pull-backup:output}
24 25 26 27 28 29 30 31 32 33 34

[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
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}

[dynamic-template-kvm-resilient]
recipe = slapos.recipe.template:jinja2
35
template = ${template-kvm-resilient:location}/instance-kvm-resilient.cfg.jinja2
36
rendered = $${buildout:directory}/template-kvm-resilient.cfg
37 38 39 40
context =
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    key slapparameter_dict slap-configuration:configuration
41 42 43 44 45 46
template-parts-destination = ${template-parts:destination}
template-replicated-destination = ${template-replicated:destination}
import-list = file parts :template-parts-destination
              file replicated :template-replicated-destination
mode = 0644

47 48 49 50 51 52 53 54 55 56 57
[dynamic-template-kvm-resilient-test]
recipe = slapos.recipe.template:jinja2
template = ${template-kvm-resilient-test:location}/instance-kvm-resilient-test.cfg.jinja2
rendered = $${buildout:directory}/template-kvm-resilient-test.cfg
bin-directory = ${buildout:bin-directory}
context =
    key bin_directory dynamic-template-kvm-resilient-test:bin-directory
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    key slapparameter_dict slap-configuration:configuration
mode = 0644