Commit 2f7bb1d4 authored by Alain Takoudjou's avatar Alain Takoudjou

kvm: fix monitor slave frontend software-type

parent 9a5b940f
......@@ -98,7 +98,7 @@ mode = 0644
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644
md5sum = c03816e4ed3657361c95d2047e4c6524
md5sum = cc56a563f601bfd0d896d9e072066920
download-only = true
on-update = true
......
......@@ -3,6 +3,7 @@
{% set use_nat = slapparameter_dict.get('use-nat', 'True').lower() -%}
{% set name = slapparameter_dict.get('name', 'localhost') -%}
{% set monitor = slapparameter_dict.get('enable-monitor', 'True').lower() -%}
{% set frontend_software_type = 'default' -%}
{% set extends_list = [] -%}
{% if monitor -%}
......@@ -43,6 +44,7 @@ parts =
monitor-instance-log-access
monitor-access-log
monitor-access-public
monitor-frontend-promise
{% endif -%}
{% if slapparameter_dict.get('document-host', '') %}
cluster-url-path
......@@ -334,6 +336,11 @@ source = ${directory:public}
[monitor-parameters]
port = 8026
{% if slapparameter_dict.get('document-host', '') and slapparameter_dict.get('document-port', '') -%}
# XXX - Set frontend software type to 'custom-personal' by default for cluster instance
{% set frontend_software_type = 'custom-personal' -%}
{% endif -%}
[request-monitor-frontend]
<= slap-connection
recipe = slapos.cookbook:requestoptional
......@@ -342,11 +349,12 @@ name = Monitor {{ slapparameter_dict.get('name', '') }} Frontend
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
config-url = ${monitor-parameters:url}
software-type = {{ slapparameter_dict.get('monitor-frontend-software-type', frontend_software_type) }}
return = site_url domain
[monitor-frontend-promise]
recipe = slapos.cookbook:check_url_available
path = $${directory:promises}/monitor_frontend
path = ${directory:promises}/monitor_frontend
url = ${publish-connection-information:monitor_url}
dash_path = {{ dash_executable_location }}
curl_path = {{ curl_executable_location }}
......
......@@ -16,6 +16,8 @@ pycrypto = 2.6.1
slapos.recipe.download = 1.0.dev-r4053
slapos.recipe.template = 2.7
smmap = 0.9.0
erp5.util = 0.4.42
pycurl = 7.19.5.1
# Required by:
# slapos.toolbox==0.48
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment