Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ekaterina
slapos
Commits
2f7bb1d4
Commit
2f7bb1d4
authored
Aug 02, 2015
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kvm: fix monitor slave frontend software-type
parent
9a5b940f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
software/kvm/common.cfg
software/kvm/common.cfg
+1
-1
software/kvm/instance-kvm.cfg.jinja2
software/kvm/instance-kvm.cfg.jinja2
+9
-1
software/kvm/software.cfg
software/kvm/software.cfg
+2
-0
No files found.
software/kvm/common.cfg
View file @
2f7bb1d4
...
@@ -98,7 +98,7 @@ mode = 0644
...
@@ -98,7 +98,7 @@ mode = 0644
recipe = hexagonit.recipe.download
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644
mode = 644
md5sum = c
03816e4ed3657361c95d2047e4c6524
md5sum = c
c56a563f601bfd0d896d9e072066920
download-only = true
download-only = true
on-update = true
on-update = true
...
...
software/kvm/instance-kvm.cfg.jinja2
View file @
2f7bb1d4
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
{% set use_nat = slapparameter_dict.get('use-nat', 'True').lower() -%}
{% set use_nat = slapparameter_dict.get('use-nat', 'True').lower() -%}
{% set name = slapparameter_dict.get('name', 'localhost') -%}
{% set name = slapparameter_dict.get('name', 'localhost') -%}
{% set monitor = slapparameter_dict.get('enable-monitor', 'True').lower() -%}
{% set monitor = slapparameter_dict.get('enable-monitor', 'True').lower() -%}
{% set frontend_software_type = 'default' -%}
{% set extends_list = [] -%}
{% set extends_list = [] -%}
{% if monitor -%}
{% if monitor -%}
...
@@ -43,6 +44,7 @@ parts =
...
@@ -43,6 +44,7 @@ parts =
monitor-instance-log-access
monitor-instance-log-access
monitor-access-log
monitor-access-log
monitor-access-public
monitor-access-public
monitor-frontend-promise
{% endif -%}
{% endif -%}
{% if slapparameter_dict.get('document-host', '') %}
{% if slapparameter_dict.get('document-host', '') %}
cluster-url-path
cluster-url-path
...
@@ -334,6 +336,11 @@ source = ${directory:public}
...
@@ -334,6 +336,11 @@ source = ${directory:public}
[monitor-parameters]
[monitor-parameters]
port = 8026
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]
[request-monitor-frontend]
<= slap-connection
<= slap-connection
recipe = slapos.cookbook:requestoptional
recipe = slapos.cookbook:requestoptional
...
@@ -342,11 +349,12 @@ name = Monitor {{ slapparameter_dict.get('name', '') }} Frontend
...
@@ -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
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
slave = true
config-url = ${monitor-parameters:url}
config-url = ${monitor-parameters:url}
software-type = {{ slapparameter_dict.get('monitor-frontend-software-type', frontend_software_type) }}
return = site_url domain
return = site_url domain
[monitor-frontend-promise]
[monitor-frontend-promise]
recipe = slapos.cookbook:check_url_available
recipe = slapos.cookbook:check_url_available
path = $
$
{directory:promises}/monitor_frontend
path = ${directory:promises}/monitor_frontend
url = ${publish-connection-information:monitor_url}
url = ${publish-connection-information:monitor_url}
dash_path = {{ dash_executable_location }}
dash_path = {{ dash_executable_location }}
curl_path = {{ curl_executable_location }}
curl_path = {{ curl_executable_location }}
...
...
software/kvm/software.cfg
View file @
2f7bb1d4
...
@@ -16,6 +16,8 @@ pycrypto = 2.6.1
...
@@ -16,6 +16,8 @@ pycrypto = 2.6.1
slapos.recipe.download = 1.0.dev-r4053
slapos.recipe.download = 1.0.dev-r4053
slapos.recipe.template = 2.7
slapos.recipe.template = 2.7
smmap = 0.9.0
smmap = 0.9.0
erp5.util = 0.4.42
pycurl = 7.19.5.1
# Required by:
# Required by:
# slapos.toolbox==0.48
# slapos.toolbox==0.48
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment