Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
Mynij
slapos-mynij-dev
Commits
516d7322
Commit
516d7322
authored
May 22, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack.erp5: Use section() in mariadb instance
parent
36d8e662
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+1
-1
stack/erp5/instance-mariadb.cfg.in
stack/erp5/instance-mariadb.cfg.in
+6
-13
No files found.
stack/erp5/buildout.hash.cfg
View file @
516d7322
...
@@ -19,7 +19,7 @@ md5sum = 844d62cd6f9d6e3d1d78d52de2b72a49
...
@@ -19,7 +19,7 @@ md5sum = 844d62cd6f9d6e3d1d78d52de2b72a49
[template-mariadb]
[template-mariadb]
filename = instance-mariadb.cfg.in
filename = instance-mariadb.cfg.in
md5sum =
1ce6e9008d3ed0701b85a2e3cd9d59b6
md5sum =
806c31145f1f30bfbb11aef625541f15
[template-kumofs]
[template-kumofs]
filename = instance-kumofs.cfg.in
filename = instance-kumofs.cfg.in
...
...
stack/erp5/instance-mariadb.cfg.in
View file @
516d7322
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
{% endif -%}
{% endif -%}
{% set dash = parameter_dict['dash-location'] ~ '/bin/dash' %}
{% set dash = parameter_dict['dash-location'] ~ '/bin/dash' %}
[
publish
]
[
{{ section('publish') }}
]
recipe = slapos.cookbook:publish.serialised
recipe = slapos.cookbook:publish.serialised
-extends = publish-early
-extends = publish-early
{% macro render_database_list(database_list) -%}
{% macro render_database_list(database_list) -%}
...
@@ -164,7 +164,7 @@ rendered = ${directory:etc}/mariadb_initial_setup.sql
...
@@ -164,7 +164,7 @@ rendered = ${directory:etc}/mariadb_initial_setup.sql
template = {{ parameter_dict['template-mariadb-initial-setup'] }}
template = {{ parameter_dict['template-mariadb-initial-setup'] }}
context = section parameter_dict init-script-parameters
context = section parameter_dict init-script-parameters
[
update-mysql
]
[
{{ section('update-mysql') }}
]
recipe = slapos.cookbook:generic.mysql.wrap_update_mysql
recipe = slapos.cookbook:generic.mysql.wrap_update_mysql
output = ${directory:services}/mariadb_update
output = ${directory:services}/mariadb_update
binary = ${binary-wrap-mysql_upgrade:wrapper-path}
binary = ${binary-wrap-mysql_upgrade:wrapper-path}
...
@@ -189,13 +189,13 @@ template = inline:#!{{ dash }}
...
@@ -189,13 +189,13 @@ template = inline:#!{{ dash }}
"$@"
"$@"
rendered = ${directory:services}/mariadb
rendered = ${directory:services}/mariadb
[
logrotate-entry-mariadb
]
[
{{ section('logrotate-entry-mariadb') }}
]
< = logrotate-entry-base
< = logrotate-entry-base
name = mariadb
name = mariadb
log = ${my-cnf-parameters:error-log} ${my-cnf-parameters:slow-query-log}
log = ${my-cnf-parameters:error-log} ${my-cnf-parameters:slow-query-log}
post = "${binary-wrap-mysql:wrapper-path}" -B -u root -e "FLUSH LOGS"
post = "${binary-wrap-mysql:wrapper-path}" -B -u root -e "FLUSH LOGS"
[
binary-link
]
[
{{ section('binary-link') }}
]
recipe = slapos.cookbook:symbolic.link
recipe = slapos.cookbook:symbolic.link
target-directory = ${directory:bin}
target-directory = ${directory:bin}
link-binary = {{ dumps(parameter_dict['link-binary']) }}
link-binary = {{ dumps(parameter_dict['link-binary']) }}
...
@@ -246,7 +246,7 @@ var = ${buildout:directory}/var
...
@@ -246,7 +246,7 @@ var = ${buildout:directory}/var
log = ${:var}/log
log = ${:var}/log
run = ${:var}/run
run = ${:var}/run
[
resiliency-exclude-file
]
[
{{ section('resiliency-exclude-file') }}
]
# Generate rdiff exclude file in case of resiliency
# Generate rdiff exclude file in case of resiliency
< = jinja2-template-base
< = jinja2-template-base
template = {{ 'inline:{{ "${directory:mariadb-data}/**\\n" }}' }}
template = {{ 'inline:{{ "${directory:mariadb-data}/**\\n" }}' }}
...
@@ -271,7 +271,7 @@ context =
...
@@ -271,7 +271,7 @@ context =
key server_executable mysqld:rendered
key server_executable mysqld:rendered
key update_executable update-mysql:output
key update_executable update-mysql:output
[
promise
]
[
{{ section('promise') }}
]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
command-line = "{{ parameter_dict['bin-directory'] }}/is-local-tcp-port-opened" "${my-cnf-parameters:ip}" "${my-cnf-parameters:port}"
command-line = "{{ parameter_dict['bin-directory'] }}/is-local-tcp-port-opened" "${my-cnf-parameters:ip}" "${my-cnf-parameters:port}"
wrapper-path = ${directory:promise}/mariadb
wrapper-path = ${directory:promise}/mariadb
...
@@ -287,11 +287,4 @@ extends =
...
@@ -287,11 +287,4 @@ extends =
{{ logrotate_cfg }}
{{ logrotate_cfg }}
{{ parameter_dict['template-monitor'] }}
{{ parameter_dict['template-monitor'] }}
parts +=
parts +=
publish
logrotate-entry-mariadb
binary-link
update-mysql
resiliency-exclude-file
resiliency-after-import-script
promise
{{ part_list | join('\n ') }}
{{ part_list | join('\n ') }}
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