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
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
Léo-Paul Géneau
slapos
Commits
494dfc30
Commit
494dfc30
authored
Sep 23, 2015
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5: make mariadb monitor friendly
parent
eae6c06c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+12
-2
stack/erp5/dummy.cfg
stack/erp5/dummy.cfg
+0
-0
stack/erp5/instance-mariadb.cfg.in
stack/erp5/instance-mariadb.cfg.in
+10
-3
stack/erp5/instance.cfg.in
stack/erp5/instance.cfg.in
+1
-0
No files found.
stack/erp5/buildout.cfg
View file @
494dfc30
...
@@ -147,7 +147,7 @@ mode = 755
...
@@ -147,7 +147,7 @@ mode = 755
[template-mariadb]
[template-mariadb]
<= download-base
<= download-base
filename = instance-mariadb.cfg.in
filename = instance-mariadb.cfg.in
md5sum =
4d46ab5aa651a39c4021de6f647e8be9
md5sum =
843e59e4151ab37a2c7bfd1ea9dafd98
link-binary =
link-binary =
${coreutils:location}/bin/basename
${coreutils:location}/bin/basename
${coreutils:location}/bin/cat
${coreutils:location}/bin/cat
...
@@ -225,7 +225,7 @@ recipe = slapos.recipe.template:jinja2
...
@@ -225,7 +225,7 @@ recipe = slapos.recipe.template:jinja2
# XXX: "template.cfg" is hardcoded in instanciation recipe
# XXX: "template.cfg" is hardcoded in instanciation recipe
rendered = ${buildout:directory}/template.cfg
rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/instance.cfg.in
template = ${:_profile_base_location_}/instance.cfg.in
md5sum =
4d043c96d70b35d1fbbd8120d8edee7c
md5sum =
708a721558f9bbe8856482e60891b4c7
mode = 640
mode = 640
context =
context =
key mariadb_link_binary template-mariadb:link-binary
key mariadb_link_binary template-mariadb:link-binary
...
@@ -291,6 +291,7 @@ context =
...
@@ -291,6 +291,7 @@ context =
key template_kumofs template-kumofs:target
key template_kumofs template-kumofs:target
key template_mariadb template-mariadb:target
key template_mariadb template-mariadb:target
key template_mariadb_initial_setup template-mariadb-initial-setup:target
key template_mariadb_initial_setup template-mariadb-initial-setup:target
key template_monitor monitor-template:rendered
key template_my_cnf template-my-cnf:target
key template_my_cnf template-my-cnf:target
key template_postfix template-postfix:target
key template_postfix template-postfix:target
key template_postfix_aliases template-postfix-aliases:target
key template_postfix_aliases template-postfix-aliases:target
...
@@ -306,6 +307,15 @@ context =
...
@@ -306,6 +307,15 @@ context =
key xfixes_location xfixes:location
key xfixes_location xfixes:location
key zlib_location zlib:location
key zlib_location zlib:location
[monitor-template-dummy]
<= download-base
# This is a placeholder, to be overriden by extending monitor SR
filename = dummy.cfg
md5sum = d41d8cd98f00b204e9800998ecf8427e
[monitor-template]
rendered = ${monitor-template-dummy:target}
[template-erp5]
[template-erp5]
<= download-base
<= download-base
filename = instance-erp5.cfg.in
filename = instance-erp5.cfg.in
...
...
stack/erp5/dummy.cfg
0 → 100644
View file @
494dfc30
stack/erp5/instance-mariadb.cfg.in
View file @
494dfc30
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
{% set ip = (ipv4_set | list)[0] -%}
{% set ip = (ipv4_set | list)[0] -%}
{% endif -%}
{% endif -%}
[publish
-mariadb-url
]
[publish]
recipe = slapos.cookbook:publish.serialised
recipe = slapos.cookbook:publish.serialised
{% macro render_database_list(database_list) -%}
{% macro render_database_list(database_list) -%}
{% set publish_database_list = [] -%}
{% set publish_database_list = [] -%}
...
@@ -232,10 +232,17 @@ command-line = "{{ parameter_dict['bin-directory'] }}/is-local-tcp-port-opened"
...
@@ -232,10 +232,17 @@ command-line = "{{ parameter_dict['bin-directory'] }}/is-local-tcp-port-opened"
wrapper-path = ${directory:promise}/mariadb
wrapper-path = ${directory:promise}/mariadb
parameters-extra = true
parameters-extra = true
[monitor-instance-parameter]
monitor-httpd-ipv6 = {{ (ipv6_set | list)[0] }}
monitor-httpd-port = {{ port + 1 }}
monitor-title = Mariadb monitor
[buildout]
[buildout]
extends = {{ logrotate_cfg }}
extends =
{{ logrotate_cfg }}
{{ paremeter_dict['template-monitor'] }}
parts +=
parts +=
publish
-mariadb-url
publish
logrotate-entry-mariadb
logrotate-entry-mariadb
binary-link
binary-link
update-mysql
update-mysql
...
...
stack/erp5/instance.cfg.in
View file @
494dfc30
...
@@ -150,6 +150,7 @@ template-mariadb-initial-setup = {{ template_mariadb_initial_setup }}
...
@@ -150,6 +150,7 @@ template-mariadb-initial-setup = {{ template_mariadb_initial_setup }}
link-binary = {{ dumps(mariadb_link_binary) }}
link-binary = {{ dumps(mariadb_link_binary) }}
bin-directory = {{ bin_directory }}
bin-directory = {{ bin_directory }}
mariadb-resiliency-after-import-script = {{ mariadb_resiliency_after_import_script }}
mariadb-resiliency-after-import-script = {{ mariadb_resiliency_after_import_script }}
template-monitor = {{ template_monitor }}
[dynamic-template-mariadb]
[dynamic-template-mariadb]
<= jinja2-template-base
<= jinja2-template-base
...
...
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