instance.cfg.in 2.13 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
extensions = jinja2.ext.do
38 39 40 41
context =
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    key slapparameter_dict slap-configuration:configuration
42 43 44 45 46 47
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

48 49 50 51 52 53 54 55
[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
context =
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    key slapparameter_dict slap-configuration:configuration
56 57
    raw bin_directory ${buildout:bin-directory}
    raw curl-executable-location ${curl:location}/bin/curl
58
mode = 0644