instance.cfg.in 1.25 KB
Newer Older
Jérome Perrin's avatar
Jérome Perrin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[buildout]
parts = switch-softwaretype
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}

[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}

[instance-template]
recipe = slapos.recipe.template:jinja2
filename = ${:_buildout_section_name_}.cfg
17
output = ${buildout:parts-directory}/${:_buildout_section_name_}/${:filename}
Jérome Perrin's avatar
Jérome Perrin committed
18 19 20 21 22 23 24 25
extensions = jinja2.ext.do
context =
  key slapparameter_dict slap-configuration:configuration
  raw software_parts_directory {{ buildout['parts-directory'] }}
  raw proftpd_bin {{ proftpd_bin }}
  raw ftpasswd_bin {{ ftpasswd_bin }}
  raw ftpdctl_bin {{ ftpdctl_bin }}
  raw ssh_keygen_bin {{ ssh_keygen_bin }}
26
  raw template_monitor {{ template_monitor }}
Jérome Perrin's avatar
Jérome Perrin committed
27 28 29

[instance-default]
<= instance-template
30
url = {{ instance_default }}
Jérome Perrin's avatar
Jérome Perrin committed
31 32 33 34 35

[switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype
# XXX Jerome: what is this override for ?
override = {{ dumps(override_switch_softwaretype |default) }}
36
default = instance-default:output
Jérome Perrin's avatar
Jérome Perrin committed
37 38
# BBB
RootSoftwareInstance = ${:default}