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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos
Commits
58fc57c5
Commit
58fc57c5
authored
May 22, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack.erp5: Factorise dash executable path generation in mariadb instance
parent
3ae90782
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+2
-2
stack/erp5/instance-mariadb-resiliency-after-import-script.sh.in
...rp5/instance-mariadb-resiliency-after-import-script.sh.in
+1
-1
stack/erp5/instance-mariadb.cfg.in
stack/erp5/instance-mariadb.cfg.in
+5
-2
No files found.
stack/erp5/buildout.hash.cfg
View file @
58fc57c5
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
# not need these here).
# not need these here).
[mariadb-resiliency-after-import-script]
[mariadb-resiliency-after-import-script]
filename = instance-mariadb-resiliency-after-import-script.sh.in
filename = instance-mariadb-resiliency-after-import-script.sh.in
md5sum =
1e89de954d816b93f76d9b75820d192c
md5sum =
af0ef3e5e3ca0a2671e5eb65eb3faea6
[template-mariadb]
[template-mariadb]
filename = instance-mariadb.cfg.in
filename = instance-mariadb.cfg.in
md5sum =
e8c5a6669c0d3b6f05065146a7fc40f0
md5sum =
a99a56d0746303aecce5bbbcf2330dad
[template-kumofs]
[template-kumofs]
filename = instance-kumofs.cfg.in
filename = instance-kumofs.cfg.in
...
...
stack/erp5/instance-mariadb-resiliency-after-import-script.sh.in
View file @
58fc57c5
#!${:dash}
#!${
dash
:dash}
# DO NOT RUN THIS SCRIPT ON PRODUCTION INSTANCE
# DO NOT RUN THIS SCRIPT ON PRODUCTION INSTANCE
# OR MYSQL DATA WILL BE ERASED.
# OR MYSQL DATA WILL BE ERASED.
...
...
stack/erp5/instance-mariadb.cfg.in
View file @
58fc57c5
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
{% else -%}
{% else -%}
{% set ip = (ipv4_set | list)[0] -%}
{% set ip = (ipv4_set | list)[0] -%}
{% endif -%}
{% endif -%}
{% set dash = parameter_dict['dash-location'] ~ '/bin/dash' %}
[publish]
[publish]
recipe = slapos.cookbook:publish.serialised
recipe = slapos.cookbook:publish.serialised
...
@@ -177,7 +178,7 @@ mysql_tzinfo_to_sql = ${binary-wrap-mysql_tzinfo_to_sql:wrapper-path}
...
@@ -177,7 +178,7 @@ mysql_tzinfo_to_sql = ${binary-wrap-mysql_tzinfo_to_sql:wrapper-path}
# section is installed - so I only use jinja2 as a fancy way to write an
# section is installed - so I only use jinja2 as a fancy way to write an
# executable file with partition-dependent but instance-parameters independent
# executable file with partition-dependent but instance-parameters independent
# content.
# content.
template = inline:#!{{
parameter_dict['dash-location'] }}/bin/dash
template = inline:#!{{
dash }}
'{{ parameter_dict['mariadb-location'] }}/scripts/mysql_install_db' \
'{{ parameter_dict['mariadb-location'] }}/scripts/mysql_install_db' \
--defaults-file='${my-cnf:rendered}' \
--defaults-file='${my-cnf:rendered}' \
--skip-name-resolve \
--skip-name-resolve \
...
@@ -252,13 +253,15 @@ mode = 644
...
@@ -252,13 +253,15 @@ mode = 644
template = {{ 'inline:{{ "${directory:mariadb-data}/**\\n" }}' }}
template = {{ 'inline:{{ "${directory:mariadb-data}/**\\n" }}' }}
rendered = ${directory:srv}/exporter.exclude
rendered = ${directory:srv}/exporter.exclude
[dash]
dash = {{ dumps(dash) }}
[resiliency-after-import-script]
[resiliency-after-import-script]
# Generate after import script used by importer instance of webrunner
# Generate after import script used by importer instance of webrunner
recipe = collective.recipe.template
recipe = collective.recipe.template
input = {{ parameter_dict['mariadb-resiliency-after-import-script'] }}
input = {{ parameter_dict['mariadb-resiliency-after-import-script'] }}
output = ${directory:srv}/runner-import-restore
output = ${directory:srv}/runner-import-restore
mode = 755
mode = 755
dash = {{ parameter_dict['dash-location'] }}/bin/dash
[promise]
[promise]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
...
...
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