instance-kvm-resilient.cfg.jinja2 914 Bytes
Newer Older
1 2 3
# vim: set ft=cfg:

{% import 'parts' as parts %}
4
{% import 'replicated' as replicated with context %}
5 6 7 8 9 10 11 12

[buildout]
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true

# += because we need to take up parts (like instance-custom, slapmonitor etc) from the profile we extended
parts +=
13
  {{ parts.replicate("kvm", "3") }}
14 15
  publish-connection-informations

16
{{ replicated.replicate("kvm", "3", "kvm-export", "kvm-import") }}
17

18
# Bubble down the parameters of the requested instance to the user
19
[request-kvm]
20
# Note: += doesn't work.
21 22 23 24
return =
# Resilient related parameters
  url ssh-public-key ssh-url notification-id ip
# KVM related parameters
25
  backend-url url ipv6
26 27 28 29 30

[publish-connection-informations]
recipe = slapos.cookbook:publish
backend-url = ${request-kvm:connection-backend-url}
url = ${request-kvm:connection-url}
31
ipv6 = ${request-kvm:connection-ipv6}