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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kwabena Antwi-Boasiako
slapos
Commits
9b4df9fc
Commit
9b4df9fc
authored
Jun 24, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apache-frontend/Root: if state is stop now needs a revalidation
parent
ff6fb68c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
software/apache-frontend/instance-apache-replicate.cfg.in
software/apache-frontend/instance-apache-replicate.cfg.in
+4
-2
No files found.
software/apache-frontend/instance-apache-replicate.cfg.in
View file @
9b4df9fc
...
@@ -104,6 +104,10 @@ sla-{{ parameter }} = {{ slapparameter_dict.pop( sla_key + parameter ) }}
...
@@ -104,6 +104,10 @@ sla-{{ parameter }} = {{ slapparameter_dict.pop( sla_key + parameter ) }}
{% endif %}
{% endif %}
## Put slave in the list according to its status
## Put slave in the list according to its status
{% set slave_state = slave_configuration.get(slave_reference).get('state') %}
{% set slave_state = slave_configuration.get(slave_reference).get('state') %}
# If slave is in state stop, its configuration needs to be revalidated
{% if slave_state == slave_stop %}
{% do slave_configuration.get(slave_reference).pop('deploy_configuration', '') %}
{% endif %}
{% if slave_state == slave_deploy %}
{% if slave_state == slave_deploy %}
{% do slave_configuration.get(slave_reference).__setitem__('deploy_configuration', slave_configuration.get(slave_reference).get('configuration')) %}
{% do slave_configuration.get(slave_reference).__setitem__('deploy_configuration', slave_configuration.get(slave_reference).get('configuration')) %}
{% elif slave_state == slave_test %}
{% elif slave_state == slave_test %}
...
@@ -169,8 +173,6 @@ extra-context =
...
@@ -169,8 +173,6 @@ extra-context =
###########################
###########################
# Deploy slave configuration
# Deploy slave configuration
#
#
{{ dumps(slave_test_list) }}
# Hardcoded dummy cache, we never start the apache
# Hardcoded dummy cache, we never start the apache
{% set cache_access = "http://%s:%s" % ("127.0.0.0", "23432") -%}
{% set cache_access = "http://%s:%s" % ("127.0.0.0", "23432") -%}
...
...
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