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
Lorenzo Martinico
slapos
Commits
7dcca771
Commit
7dcca771
authored
Jun 05, 2012
by
Vincent Pelletier
Committed by
Kazuhiko Shiozaki
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strip unneeded linebreak in rendering.
parent
98b0a04b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
software/erp5/instance-tidstorage.cfg.in
software/erp5/instance-tidstorage.cfg.in
+10
-12
software/erp5/software.cfg
software/erp5/software.cfg
+1
-1
No files found.
software/erp5/instance-tidstorage.cfg.in
View file @
7dcca771
...
@@ -4,7 +4,7 @@ Note: all port counters are pre-incremented. No idea why base port is skipped.
...
@@ -4,7 +4,7 @@ Note: all port counters are pre-incremented. No idea why base port is skipped.
-#}
-#}
{% set current_zeo_port = zeo_port_base | int -%}
{% set current_zeo_port = zeo_port_base | int -%}
{% set zope_port_base = zope_port_base | int -%}
{% set zope_port_base = zope_port_base | int -%}
{% set zope_dummy_list = [] %}
{% set zope_dummy_list = []
-
%}
{% set current_apache_port = apache_port_base | int -%}
{% set current_apache_port = apache_port_base | int -%}
{% set current_haproxy_port = haproxy_port_base | int -%}
{% set current_haproxy_port = haproxy_port_base | int -%}
{% set json = json_module.loads(slapparameter_dict['json']) -%}
{% set json = json_module.loads(slapparameter_dict['json']) -%}
...
@@ -40,13 +40,13 @@ backward compatibility with existing automatically setup CAs.
...
@@ -40,13 +40,13 @@ backward compatibility with existing automatically setup CAs.
longrequest_logger_interval=''
longrequest_logger_interval=''
) -%}
) -%}
{% set conf_name = name ~ '-conf' -%}
{% set conf_name = name ~ '-conf' -%}
{% set conf_parameter_name = conf_name ~ '-param' %}
{% set conf_parameter_name = conf_name ~ '-param'
-
%}
[{{ conf_parameter_name }}]
[{{ conf_parameter_name }}]
< = zope-conf-parameter-base
< = zope-conf-parameter-base
pid-file = ${directory:run}/{{ name }}.pid
pid-file = ${directory:run}/{{ name }}.pid
lock-file = ${directory:run}/{{ name }}.lock
lock-file = ${directory:run}/{{ name }}.lock
{% do zope_dummy_list.append(None) %}
{% do zope_dummy_list.append(None)
-
%}
{% set offset = zope_dummy_list | length %}
{% set offset = zope_dummy_list | length
-
%}
port = {{ zope_port_base + offset }}
port = {{ zope_port_base + offset }}
thread-amount = {{ thread_amount }}
thread-amount = {{ thread_amount }}
timeserver = {{ timeserver }}
timeserver = {{ timeserver }}
...
@@ -360,7 +360,7 @@ context =
...
@@ -360,7 +360,7 @@ context =
# Activity nodes
# Activity nodes
{% for q in range(1, json['activity']['zopecount'] + 1) -%}
{% for q in range(1, json['activity']['zopecount'] + 1) -%}
{{ zope('zope-activity-%s' % q, timeserver=True) }}
{{ zope('zope-activity-%s' % q, timeserver=True) }}
{% endfor %}
{%
-
endfor %}
# Other zopes, apaches and haproxies
# Other zopes, apaches and haproxies
{% set publish_url_list = [] -%}
{% set publish_url_list = [] -%}
{% for backend_name, backend_configuration in json['backend'].iteritems() -%}
{% for backend_name, backend_configuration in json['backend'].iteritems() -%}
...
@@ -385,7 +385,7 @@ context =
...
@@ -385,7 +385,7 @@ context =
longrequest_logger_interval=longrequest_logger_interval,
longrequest_logger_interval=longrequest_logger_interval,
) }}
) }}
{% do haproxy_backend_list.append('${%(part_name)s:ip}:${%(part_name)s:port}' % {'part_name': part_name}) -%}
{% do haproxy_backend_list.append('${%(part_name)s:ip}:${%(part_name)s:port}' % {'part_name': part_name}) -%}
{%
endfor
%}
{%
endfor -
%}
{% set scheme = backend_configuration.get('scheme', ['https']) -%}
{% set scheme = backend_configuration.get('scheme', ['https']) -%}
{% set current_apache_port = current_apache_port + 2 -%}
{% set current_apache_port = current_apache_port + 2 -%}
{% set current_haproxy_port = current_haproxy_port + 1 -%}
{% set current_haproxy_port = current_haproxy_port + 1 -%}
...
@@ -417,7 +417,7 @@ recipe = slapos.cookbook:logrotate.d
...
@@ -417,7 +417,7 @@ recipe = slapos.cookbook:logrotate.d
name = apache-public-{{ backend_name }}
name = apache-public-{{ backend_name }}
log = ${apache-public-{{ backend_name }}:error-log} ${apache-public-{{ backend_name }}:access-log}
log = ${apache-public-{{ backend_name }}:error-log} ${apache-public-{{ backend_name }}:access-log}
post = {{ bin_directory }}/killpidfromfile ${apache-public-{{ backend_name }}:pid-file} SIGUSR1
post = {{ bin_directory }}/killpidfromfile ${apache-public-{{ backend_name }}:pid-file} SIGUSR1
{% endif %}
{% endif
-
%}
{% if 'https' in scheme -%}
{% if 'https' in scheme -%}
{% set section_name = 'apache-' ~ backend_name -%}
{% set section_name = 'apache-' ~ backend_name -%}
{% do publish_url_list.append(
{% do publish_url_list.append(
...
@@ -474,9 +474,8 @@ server-check-path = /{{ site_id }}/getId
...
@@ -474,9 +474,8 @@ server-check-path = /{{ site_id }}/getId
wrapper-path = ${directory:services}/haproxy-{{ backend_name }}
wrapper-path = ${directory:services}/haproxy-{{ backend_name }}
binary-path = {{ parameter_dict['haproxy'] }}/sbin/haproxy
binary-path = {{ parameter_dict['haproxy'] }}/sbin/haproxy
backend-list = {{ haproxy_backend_list | join(' ')}}
backend-list = {{ haproxy_backend_list | join(' ')}}
{% endif -%}
{%- endif %}
{% endfor %}
{% endfor -%}
[{{ section('publish-apache-backend-list') }}]
[{{ section('publish-apache-backend-list') }}]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
{{ publish_url_list | join('\n') }}
{{ publish_url_list | join('\n') }}
...
@@ -536,5 +535,4 @@ parts =
...
@@ -536,5 +535,4 @@ parts =
eggs-directory = {{ eggs_directory }}
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
offline = true
{%- endif %}
{% endif %}
software/erp5/software.cfg
View file @
7dcca771
...
@@ -132,7 +132,7 @@ extra-context =
...
@@ -132,7 +132,7 @@ extra-context =
[template-tidstorage]
[template-tidstorage]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
md5sum =
d30732ddf53a970849bea47af6cf5f62
md5sum =
4e99979af04da930842d4ebd0d114a29
mode = 640
mode = 640
[template-cloudooo]
[template-cloudooo]
...
...
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