instance-kvm-export.cfg.jinja2 1.45 KB
Newer Older
1
[buildout]
2 3 4
extends =
  {{ kvm_template }}
  {{ pbsready_export_template }}
5 6 7 8 9 10

parts +=
  cron-entry-backup

  certificate-authority
  publish-connection-information
11 12
  kvm-vnc-promise
  kvm-disk-image-corruption-promise
13 14 15 16
  websockify-sighandler
  novnc-promise
  cron
  frontend-promise
17 18
# monitor parts
  monitor-base
19 20 21

# Create the exporter executable, which is a simple shell script
[exporter]
22 23 24
recipe = slapos.recipe.template:jinja2
template = {{ template_kvm_export }}
rendered = ${directory:bin}/${slap-parameter:namebase}-exporter
25
# Resilient stack wants a "wrapper" parameter
26 27 28 29 30 31
wrapper = ${:rendered}
mode = 0700
context =
    section directory directory
    section buildout buildout
    key socket_path kvm-instance:socket-path
32
    raw gzip_binary {{ gzip_binary }}
33 34 35 36

# Extends publish section with resilient parameters
[publish-connection-information]
<= resilient-publish-connection-parameter
37 38
monitor-base-url = ${monitor-publish:monitor-base-url}
monitor-setup-url = ${monitor-publish:monitor-setup-url}
39

40 41 42 43
[monitor-instance-parameter]
monitor-httpd-port = 8026
monitor-title = {{ slapparameter_dict.get('name', 'KVM Standalone') }}
cors-domains = {{ slapparameter_dict.get('monitor-cors-domains', 'monitor.app.officejs.com') }}
44
{% if slapparameter_dict.get('monitor-username', '') -%}
45
username = {{ slapparameter_dict['monitor-username'] }}
46 47
{% endif -%}
{% if slapparameter_dict.get('monitor-password', '') -%}
48 49
password = {{ slapparameter_dict['monitor-password'] }}
{% endif -%}
50