instance-kvm-resilient.cfg.jinja2 872 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 13 14 15 16 17

[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 +=
  {{ parts.replicate("kvm", "2") }}
  publish-connection-informations

{{ replicated.replicate("kvm", "2", "kvm-export", "kvm-import") }}

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

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