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
Sebastian
slapos
Commits
ff6fb68c
Commit
ff6fb68c
authored
Jun 24, 2014
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apache-frontend/Root: add monitor script to test deployed slaves
parent
fed32c89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
software/apache-frontend/instance-apache-replicate.cfg.in
software/apache-frontend/instance-apache-replicate.cfg.in
+24
-5
software/apache-frontend/instance.cfg
software/apache-frontend/instance.cfg
+2
-1
No files found.
software/apache-frontend/instance-apache-replicate.cfg.in
View file @
ff6fb68c
...
...
@@ -322,10 +322,8 @@ cache-access-log = ${directory:log}/frontend-apache-access-cached.log
cache-error-log = ${directory:log}/frontend-apache-error-cached.log
cache-pid-file = ${directory:run}/httpd-cached.pid
[configtest]
recipe = slapos.cookbook:wrapper
command-line = {{ build_path.get('apache-location') }}/bin/httpd -f ${directory:etc}/apache_frontend.conf -t
wrapper-path = ${directory:bin}/apache-configtest
####
# Certificates
[certificate-authority]
recipe = slapos.cookbook:certificate_authority
...
...
@@ -381,6 +379,26 @@ context =
key this_file :filename
raw python_executable ${buildout:executable}
####
# Check configuration
[frontend-apache-configuration]
< = jinja2-template-base
template = {{ build_path.get('template-wrapper') }}
rendered = ${monitor-directory:monitoring-cgi}/front-httpd-configuration
mode = 0700
command = echo "<pre>$(${apache-configuration:frontend-configuration-verification})</pre>"
extra-context =
key content :command
[promise-frontend-apache-configuration]
< = jinja2-template-base
template = {{ build_path.get('template-wrapper') }}
rendered = ${monitor-directory:monitor-custom-scripts}/frontend-apache-configuration-promise
mode = 0700
extra-context =
key content apache-configuration:frontend-configuration-verification
#####################
# Buidout elements
...
...
@@ -391,7 +409,8 @@ parts =
publish-slave-information
publish-information
dynamic-apache-frontend-template
configtest
frontend-apache-configuration
promise-frontend-apache-configuration
dynamic-template-default-vh
{% for part in part_list -%}
{{ ' %s' % part }}
...
...
software/apache-frontend/instance.cfg
View file @
ff6fb68c
...
...
@@ -69,4 +69,5 @@ template-default-slave-virtualhost = ${template-default-slave-virtualhost:target
template-default-virtualhost = ${template-default-virtualhost:target}
template-empty = ${template-empty:target}
template-slave-configuration = ${template-slave-configuration:target}
template-slave-control-interface = ${template-slave-control-interface:location}/${template-slave-control-interface:filename}
\ No newline at end of file
template-slave-control-interface = ${template-slave-control-interface:location}/${template-slave-control-interface:filename}
template-wrapper = ${template-wrapper:output}
\ No newline at end of file
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