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
Kwabena Antwi-Boasiako
slapos
Commits
f9daf1cf
Commit
f9daf1cf
authored
Apr 04, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: use promise.plugin recipe to generate promise script
parent
6f7b3a31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
stack/monitor/buildout.hash.cfg
stack/monitor/buildout.hash.cfg
+1
-1
stack/monitor/instance-monitor.cfg.jinja2.in
stack/monitor/instance-monitor.cfg.jinja2.in
+14
-13
No files found.
stack/monitor/buildout.hash.cfg
View file @
f9daf1cf
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
# not need these here).
# not need these here).
[monitor2-template]
[monitor2-template]
filename = instance-monitor.cfg.jinja2.in
filename = instance-monitor.cfg.jinja2.in
md5sum =
4a44e6ae988375ad3e3129d25d440503
md5sum =
86517ddccc86c76deaedf11066470550
stack/monitor/instance-monitor.cfg.jinja2.in
View file @
f9daf1cf
...
@@ -354,26 +354,27 @@ curl_path = {{ curl_executable_location }}
...
@@ -354,26 +354,27 @@ curl_path = {{ curl_executable_location }}
check-secure = 1
check-secure = 1
[monitor-bootstrap-promise]
[monitor-bootstrap-promise]
recipe = collective.recipe.template
recipe = slapos.cookbook:promise.plugin
eggs =
slapos.toolbox
file = ${monitor-conf-parameters:promise-output-file}
file = ${monitor-conf-parameters:promise-output-file}
input = inline:from slapos.promise.plugin.monitor_bootstrap_status import RunPromise
content =
from slapos.promise.plugin import monitor_bootstrap_status
from slapos.promise.plugin.monitor_bootstrap_status import RunPromise
monitor_bootstrap_status.PROCESS_PID_FILE = "${monitor-conf-parameters:pid-file}"
monitor_bootstrap_status.PROCESS_NAME = "${start-monitor:name}"
monitor_bootstrap_status.STATUS_FILE = "${:file}"
output = ${directory:plugins}/monitor-bootstrap-status.py
output = ${directory:plugins}/monitor-bootstrap-status.py
mode = 600
mode = 600
config-process-pid-file = ${monitor-conf-parameters:pid-file}
config-process-name = ${start-monitor:name}
config-status-file = ${:file}
[promise-check-slapgrid]
[promise-check-slapgrid]
recipe = collective.recipe.template
recipe = slapos.cookbook:promise.plugin
eggs =
slapos.toolbox
output = ${directory:plugins}/buildout-${slap-connection:partition-id}-status.py
output = ${directory:plugins}/buildout-${slap-connection:partition-id}-status.py
content =
from slapos.promise.plugin.check_partition_deployment_state import RunPromise
config-monitor-url = ${monitor-instance-parameter:monitor-base-url}
mode = 600
mode = 600
input = inline:from slapos.promise.plugin.check_partition_deployment_state import RunPromise
from slapos.promise.plugin import check_partition_deployment_state
check_partition_deployment_state.MONITOR_URL = "${monitor-instance-parameter:monitor-base-url}"
[promise-check-free-disk-space]
[promise-check-free-disk-space]
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