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
iv
slapos
Commits
d7006e43
Commit
d7006e43
authored
Sep 22, 2015
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: add configuration for monitor httpd promise
parent
693c0dc4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
24 deletions
+29
-24
stack/monitor/buildout.cfg
stack/monitor/buildout.cfg
+6
-8
stack/monitor/instance-monitor.cfg.jinja2.in
stack/monitor/instance-monitor.cfg.jinja2.in
+19
-2
stack/monitor/templates/monitor-httpd-promise.conf.in
stack/monitor/templates/monitor-httpd-promise.conf.in
+4
-0
stack/monitor/templates/monitor-service.conf.in
stack/monitor/templates/monitor-service.conf.in
+0
-14
No files found.
stack/monitor/buildout.cfg
View file @
d7006e43
...
...
@@ -89,7 +89,7 @@ recipe = slapos.recipe.template:jinja2
filename = template-monitor.cfg
template = ${:_profile_base_location_}/instance-monitor.cfg.jinja2.in
rendered = ${buildout:directory}/template-monitor.cfg
md5sum =
794e7fd74bca86ea5e74a29cde21b836
md5sum =
4110e1857c328a9fba7e47c3e72d02b2
context =
key apache_location apache:location
key gzip_location gzip:location
...
...
@@ -104,9 +104,9 @@ context =
raw dash_executable_location ${dash:location}/bin/dash
raw dcron_executable_location ${dcron:location}/sbin/crond
raw logrotate_executable_location ${logrotate:location}/usr/sbin/logrotate
raw monitor_httpd_promise_conf ${monitor-httpd-promise-conf:location}/${monitor-httpd-promise-conf:filename}
raw monitor_httpd_template ${monitor-httpd-conf:location}/${monitor-httpd-conf:filename}
raw monitor_service_run ${monitor-service-template-run:location}/${monitor-service-template-run:filename}
raw monitor_service_template_conf ${monitor-service-template-conf:location}/${monitor-service-template-conf:filename}
raw openssl_executable_location ${openssl:location}/bin/openssl
raw python_executable ${buildout:executable}
raw promise_executor_py ${run-promise-py:location}/${run-promise-py:filename}
...
...
@@ -120,13 +120,11 @@ md5sum = 5be55c3918daa9cc9f8425bfc40e70b1
filename = monitor-httpd.conf.in
mode = 0644
[monitor-
service-templat
e-conf]
recipe = hexagonit.recipe.download
[monitor-
httpd-promis
e-conf]
<= monitor-download-base
url = ${:_profile_base_location_}/templates/${:filename}
download-only = true
md5sum = 24885347932935fac93e8bc2a80ec7a2
filename = monitor-service.conf.in
mode = 0644
filename = monitor-httpd-promise.conf.in
md5sum = 5913d2a0096b50537f394a49b762b3e5
[monitor-service-template-run]
recipe = hexagonit.recipe.download
...
...
stack/monitor/instance-monitor.cfg.jinja2.in
View file @
d7006e43
...
...
@@ -231,12 +231,29 @@ context =
[monitor-httpd-promise]
recipe = slapos.cookbook:check_url_available
path = ${directory:promises}/monitor-httpd-listening-on-tcp
path = ${directory:promises}/${:filename}
filename = monitor-httpd-listening-on-tcp
url = ${monitor-httpd-conf-parameter:url}
check-secure = 1
dash_path = {{ dash_executable_location }}
curl_path = {{ curl_executable_location }}
[monitor-httpd-promise-conf]
recipe = slapos.recipe.template:jinja2
rendered = ${monitor-directory:services-conf}/monitor-httpd-promise.conf
template = {{ monitor_httpd_promise_conf }}
context = section parameter_dict monitor-httpd-promise-conf-parameter
[monitor-httpd-promise-conf-parameter]
title = Monitor httpd listening
name = ${monitor-httpd-promise:filename}
# frequency minute hour day mounth weekday
frequency = * * * * *
#promise-path =
#interface-path =
public-path-list = ${monitor-httpd-conf-parameter:access-log} ${monitor-httpd-conf-parameter:error-log}
#private-path-list =
[monitor-publish]
recipe = slapos.cookbook:publish
monitor_url_v6 = ${monitor-httpd-conf-parameter:url}
...
...
@@ -256,5 +273,5 @@ parts =
monitor-conf
start-monitor
ca-httpd
monitor-httpd-promise
monitor-httpd-promise
-conf
monitor-publish
stack/monitor/templates/monitor-httpd-promise.conf.in
0 → 100644
View file @
d7006e43
[service]
{% for key, value in parameter_dict.items() -%}
{{ key }} = {{ value.strip().replace("\n", "\n ") }}
{% endfor -%}
stack/monitor/templates/monitor-service.conf.in
deleted
100644 → 0
View file @
693c0dc4
[service]
name = {{ name }}
title = {{ title }}
frequency = {{ frequency }}
script-path = {{ script_path }}
public-path-list =
{{ public_path_list.split() | join('\n ') }}
private-path-list =
{{ private_path_list.split() | join('\n ') }}
[parameter]
{% for key, value in parameters.iteritems() -%}
{{ key }} = {{ value }}
{% endfor -%}
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