Commit 894d5cf3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

stack/erp5: add sql-read-committed-connection.

parent 92b6cf0d
...@@ -34,7 +34,7 @@ md5sum = 45cc45510b59ceb730b6e38448b5c0c3 ...@@ -34,7 +34,7 @@ md5sum = 45cc45510b59ceb730b6e38448b5c0c3
[template-zope-conf] [template-zope-conf]
filename = zope.conf.in filename = zope.conf.in
md5sum = 07c9d4ced9945fe3ad80e75b493af29e md5sum = 22d47c78a364e32ebe5fa93fa18caf6d
[site-zcml] [site-zcml]
filename = site.zcml filename = site.zcml
...@@ -86,7 +86,7 @@ md5sum = 0ac4b74436f554cd677f19275d18d880 ...@@ -86,7 +86,7 @@ md5sum = 0ac4b74436f554cd677f19275d18d880
[template-zope] [template-zope]
filename = instance-zope.cfg.in filename = instance-zope.cfg.in
md5sum = 9e6440425167a506bd473a3697eaa9e6 md5sum = e1d22118dfcc8d5e929ffa647e0f7256
[template-balancer] [template-balancer]
filename = instance-balancer.cfg.in filename = instance-balancer.cfg.in
......
...@@ -264,6 +264,8 @@ inituser = {{ slapparameter_dict['inituser-login'] }} ...@@ -264,6 +264,8 @@ inituser = {{ slapparameter_dict['inituser-login'] }}
{% set mysql_db = mysql.path.split('/')[1] -%} {% set mysql_db = mysql.path.split('/')[1] -%}
sql-connection-string = {{ '%s@erp5-catalog-0:%s %s %s' % ( sql-connection-string = {{ '%s@erp5-catalog-0:%s %s %s' % (
mysql_db, mysql.port, mysql.username, mysql.password) }} mysql_db, mysql.port, mysql.username, mysql.password) }}
sql-read-committed-connection-string = {{ '!READ-COMMITTED %s@erp5-catalog-0:%s %s %s' % (
mysql_db, mysql.port, mysql.username, mysql.password) }}
bt5 = {{ slapparameter_dict['bt5'] }} bt5 = {{ slapparameter_dict['bt5'] }}
bt5-repository-url = {{ slapparameter_dict['bt5-repository-url'] }} bt5-repository-url = {{ slapparameter_dict['bt5-repository-url'] }}
id-store-interval = {{ dumps(slapparameter_dict['id-store-interval']) }} id-store-interval = {{ dumps(slapparameter_dict['id-store-interval']) }}
......
...@@ -58,6 +58,7 @@ trusted-proxy 0.0.0.0 ...@@ -58,6 +58,7 @@ trusted-proxy 0.0.0.0
{% set sql_connection_string = parameter_dict.get('sql-connection-string') -%} {% set sql_connection_string = parameter_dict.get('sql-connection-string') -%}
{% set sql_read_committed_connection_string = parameter_dict.get('sql-read-committed-connection-string') -%}
{% if sql_connection_string -%} {% if sql_connection_string -%}
{% set bt5_repository_url = [] -%} {% set bt5_repository_url = [] -%}
{% set sr_path = os.path.realpath(parameter_dict['home'] + '/software_release') + '/' -%} {% set sr_path = os.path.realpath(parameter_dict['home'] + '/software_release') + '/' -%}
...@@ -71,7 +72,8 @@ trusted-proxy 0.0.0.0 ...@@ -71,7 +72,8 @@ trusted-proxy 0.0.0.0
id {{ parameter_dict['site-id'] }} id {{ parameter_dict['site-id'] }}
owner {{ parameter_dict['inituser'] }} owner {{ parameter_dict['inituser'] }}
erp5_sql_connection_string {{ sql_connection_string }} erp5_sql_connection_string {{ sql_connection_string }}
cmf_activity_sql_connection_string {{ sql_connection_string }} erp5_sql_read_committed_connection_string {{ sql_read_committed_connection_string }}
cmf_activity_sql_connection_string {{ sql_read_committed_connection_string }}
bt5_repository_url {{ ' '.join(bt5_repository_url) }} bt5_repository_url {{ ' '.join(bt5_repository_url) }}
bt5 {{ parameter_dict['bt5'] }} bt5 {{ parameter_dict['bt5'] }}
{%- if parameter_dict['id-store-interval'] != None %} {%- if parameter_dict['id-store-interval'] != None %}
......
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