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
Lukas Niegsch
slapos
Commits
e6d97b35
Commit
e6d97b35
authored
May 29, 2020
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy-frontend: Improve buildout.hash.cfg
parent
bb5ac3d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
57 deletions
+32
-57
software/caddy-frontend/buildout.hash.cfg
software/caddy-frontend/buildout.hash.cfg
+19
-19
software/caddy-frontend/common.cfg
software/caddy-frontend/common.cfg
+5
-29
software/caddy-frontend/instance-apache-frontend.cfg.in
software/caddy-frontend/instance-apache-frontend.cfg.in
+8
-9
No files found.
software/caddy-frontend/buildout.hash.cfg
View file @
e6d97b35
...
@@ -22,22 +22,22 @@ md5sum = c801b7f9f11f0965677c22e6bbe9281b
...
@@ -22,22 +22,22 @@ md5sum = c801b7f9f11f0965677c22e6bbe9281b
[template-apache-frontend]
[template-apache-frontend]
filename = instance-apache-frontend.cfg.in
filename = instance-apache-frontend.cfg.in
md5sum =
cbdf668a230bf6e95b52cb94111f94e0
md5sum =
9409c580ce469dd31e8b7b05a1e59ae7
[template-caddy-replicate]
[template-caddy-replicate]
filename = instance-apache-replicate.cfg.in
filename = instance-apache-replicate.cfg.in
md5sum = a544bf7586f5945bbf108abe9818c7dd
md5sum = a544bf7586f5945bbf108abe9818c7dd
[template-slave-list]
[template-slave-list]
filename
= templates/apache-custom-slave-list.cfg.in
_update_hash_filename_
= templates/apache-custom-slave-list.cfg.in
md5sum = 83992a72b440e422e6d6dae54990f3b1
md5sum = 83992a72b440e422e6d6dae54990f3b1
[template-replicate-publish-slave-information]
[template-replicate-publish-slave-information]
filename
= templates/replicate-publish-slave-information.cfg.in
_update_hash_filename_
= templates/replicate-publish-slave-information.cfg.in
md5sum = 7e3ee70c447f8203273d78f66ab519c3
md5sum = 7e3ee70c447f8203273d78f66ab519c3
[template-caddy-frontend-configuration]
[template-caddy-frontend-configuration]
filename
= templates/Caddyfile.in
_update_hash_filename_
= templates/Caddyfile.in
md5sum = f0faf6d2e6c187df7e25bf717676f9df
md5sum = f0faf6d2e6c187df7e25bf717676f9df
[caddy-backend-url-validator]
[caddy-backend-url-validator]
...
@@ -45,63 +45,63 @@ filename = templates/caddy-backend-url-validator.in
...
@@ -45,63 +45,63 @@ filename = templates/caddy-backend-url-validator.in
md5sum = 0979a03476e86bf038516c9565dadc17
md5sum = 0979a03476e86bf038516c9565dadc17
[template-not-found-html]
[template-not-found-html]
filename
= templates/notfound.html
_update_hash_filename_
= templates/notfound.html
md5sum = f20d6c3d2d94fb685f8d26dfca1e822b
md5sum = f20d6c3d2d94fb685f8d26dfca1e822b
[template-default-slave-virtualhost]
[template-default-slave-virtualhost]
filename
= templates/default-virtualhost.conf.in
_update_hash_filename_
= templates/default-virtualhost.conf.in
md5sum = 7e26935bb6daf00d8fc01d97eebc7abd
md5sum = 7e26935bb6daf00d8fc01d97eebc7abd
[template-cached-slave-virtualhost]
[template-cached-slave-virtualhost]
filename
= templates/cached-virtualhost.conf.in
_update_hash_filename_
= templates/cached-virtualhost.conf.in
md5sum = a73839d777fbd548286bbeccf47be335
md5sum = a73839d777fbd548286bbeccf47be335
[template-log-access]
[template-log-access]
filename
= templates/template-log-access.conf.in
_update_hash_filename_
= templates/template-log-access.conf.in
md5sum = f8068179333ce19e95df561c70073857
md5sum = f8068179333ce19e95df561c70073857
[template-empty]
[template-empty]
filename
= templates/empty.in
_update_hash_filename_
= templates/empty.in
md5sum = c2314c3a9c3412a38d14b312d3df83c1
md5sum = c2314c3a9c3412a38d14b312d3df83c1
[template-wrapper]
[template-wrapper]
filename
= templates/wrapper.in
_update_hash_filename_
= templates/wrapper.in
md5sum = 8cde04bfd0c0e9bd56744b988275cfd8
md5sum = 8cde04bfd0c0e9bd56744b988275cfd8
[template-trafficserver-records-config]
[template-trafficserver-records-config]
filename
= templates/trafficserver/records.config.jinja2
_update_hash_filename_
= templates/trafficserver/records.config.jinja2
md5sum = 3a4e378932ffc7768426bb7a897e2c45
md5sum = 3a4e378932ffc7768426bb7a897e2c45
[template-trafficserver-storage-config]
[template-trafficserver-storage-config]
filename
= templates/trafficserver/storage.config.jinja2
_update_hash_filename_
= templates/trafficserver/storage.config.jinja2
md5sum = baf7b89cc9ab5506100b0c900808c1ea
md5sum = baf7b89cc9ab5506100b0c900808c1ea
[template-trafficserver-logging-config]
[template-trafficserver-logging-config]
filename
= templates/trafficserver/logging.config.jinja2
_update_hash_filename_
= templates/trafficserver/logging.config.jinja2
md5sum = 6aed31174dc262ced02f31624321df41
md5sum = 6aed31174dc262ced02f31624321df41
[template-nginx-eventsource-slave-virtualhost]
[template-nginx-eventsource-slave-virtualhost]
filename
= templates/nginx-eventsource-slave.conf.in
_update_hash_filename_
= templates/nginx-eventsource-slave.conf.in
md5sum = 217a6c801b8330b0b825f7b8b4c77184
md5sum = 217a6c801b8330b0b825f7b8b4c77184
[template-caddy-lazy-script-call]
[template-caddy-lazy-script-call]
filename
= templates/apache-lazy-script-call.sh.in
_update_hash_filename_
= templates/apache-lazy-script-call.sh.in
md5sum = b9f73f6323f9fceea054c46c854d2862
md5sum = b9f73f6323f9fceea054c46c854d2862
[template-graceful-script]
[template-graceful-script]
filename
= templates/graceful-script.sh.in
_update_hash_filename_
= templates/graceful-script.sh.in
md5sum = 061cc244558fd3af2b6bacf17cae5555
md5sum = 061cc244558fd3af2b6bacf17cae5555
[template-validate-script]
[template-validate-script]
filename
= templates/validate-script.sh.in
_update_hash_filename_
= templates/validate-script.sh.in
md5sum = f26e11574f266c7437c9c89e3c93825a
md5sum = f26e11574f266c7437c9c89e3c93825a
[template-configuration-state-script]
[template-configuration-state-script]
filename
= templates/configuration-state-script.sh.in
_update_hash_filename_
= templates/configuration-state-script.sh.in
md5sum = 4d2537d2698d32a7e909989f8778d144
md5sum = 4d2537d2698d32a7e909989f8778d144
[template-rotate-script]
[template-rotate-script]
filename
= templates/rotate-script.sh.in
_update_hash_filename_
= templates/rotate-script.sh.in
md5sum = 8c150e1e6c993708d31936742f3a7302
md5sum = 8c150e1e6c993708d31936742f3a7302
[caddyprofiledeps-setup]
[caddyprofiledeps-setup]
...
...
software/caddy-frontend/common.cfg
View file @
e6d97b35
...
@@ -120,13 +120,9 @@ template_empty = ${template-empty:target}
...
@@ -120,13 +120,9 @@ template_empty = ${template-empty:target}
template_log_access = ${template-log-access:target}
template_log_access = ${template-log-access:target}
template_not_found_html = ${template-not-found-html:target}
template_not_found_html = ${template-not-found-html:target}
template_slave_list = ${template-slave-list:target}
template_slave_list = ${template-slave-list:target}
template_trafficserver_records_config = ${template-trafficserver-records-config:location}
template_trafficserver_records_config = ${template-trafficserver-records-config:target}
template_trafficserver_records_config_filename = ${template-trafficserver-records-config:filename}
template_trafficserver_storage_config = ${template-trafficserver-storage-config:target}
template_trafficserver_records_config_location = ${template-trafficserver-records-config:location}
template_trafficserver_logging_config = ${template-trafficserver-logging-config:target}
template_trafficserver_storage_config_filename = ${template-trafficserver-storage-config:filename}
template_trafficserver_storage_config_location = ${template-trafficserver-storage-config:location}
template_trafficserver_logging_config_filename = ${template-trafficserver-logging-config:filename}
template_trafficserver_logging_config_location = ${template-trafficserver-logging-config:location}
template_wrapper = ${template-wrapper:output}
template_wrapper = ${template-wrapper:output}
[template]
[template]
...
@@ -154,8 +150,7 @@ mode = 0644
...
@@ -154,8 +150,7 @@ mode = 0644
[caddy-backend-url-validator]
[caddy-backend-url-validator]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/templates/${:filename}
url = ${:_profile_base_location_}/${:filename}
filename = caddy-backend-url-validator.in
output = ${buildout:directory}/caddy-backend-url-validator
output = ${buildout:directory}/caddy-backend-url-validator
mode = 0750
mode = 0750
...
@@ -171,40 +166,32 @@ mode = 0644
...
@@ -171,40 +166,32 @@ mode = 0644
[download-template]
[download-template]
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/
templates/${:filename
}
url = ${:_profile_base_location_}/
${:_update_hash_filename_
}
mode = 640
mode = 640
[template-slave-list]
[template-slave-list]
<=download-template
<=download-template
filename = apache-custom-slave-list.cfg.in
[template-replicate-publish-slave-information]
[template-replicate-publish-slave-information]
<=download-template
<=download-template
filename = replicate-publish-slave-information.cfg.in
[template-caddy-frontend-configuration]
[template-caddy-frontend-configuration]
<=download-template
<=download-template
filename = Caddyfile.in
[template-not-found-html]
[template-not-found-html]
<=download-template
<=download-template
filename = notfound.html
[template-default-slave-virtualhost]
[template-default-slave-virtualhost]
<=download-template
<=download-template
filename = default-virtualhost.conf.in
[template-cached-slave-virtualhost]
[template-cached-slave-virtualhost]
<=download-template
<=download-template
filename = cached-virtualhost.conf.in
[template-log-access]
[template-log-access]
<=download-template
<=download-template
filename = template-log-access.conf.in
[template-empty]
[template-empty]
<=download-template
<=download-template
filename = empty.in
[template-wrapper]
[template-wrapper]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
...
@@ -214,35 +201,24 @@ mode = 0644
...
@@ -214,35 +201,24 @@ mode = 0644
[template-trafficserver-records-config]
[template-trafficserver-records-config]
<=download-template
<=download-template
url = ${:_profile_base_location_}/templates/trafficserver/${:filename}
filename = records.config.jinja2
[template-trafficserver-storage-config]
[template-trafficserver-storage-config]
<=download-template
<=download-template
url = ${:_profile_base_location_}/templates/trafficserver/${:filename}
filename = storage.config.jinja2
[template-trafficserver-logging-config]
[template-trafficserver-logging-config]
<=download-template
<=download-template
url = ${:_profile_base_location_}/templates/trafficserver/${:filename}
filename = logging.config.jinja2
[template-rotate-script]
[template-rotate-script]
<=download-template
<=download-template
filename = rotate-script.sh.in
[template-caddy-lazy-script-call]
[template-caddy-lazy-script-call]
<=download-template
<=download-template
filename = apache-lazy-script-call.sh.in
[template-graceful-script]
[template-graceful-script]
<=download-template
<=download-template
filename = graceful-script.sh.in
[template-validate-script]
[template-validate-script]
<=download-template
<=download-template
filename = validate-script.sh.in
[template-configuration-state-script]
[template-configuration-state-script]
<=download-template
<=download-template
filename = configuration-state-script.sh.in
software/caddy-frontend/instance-apache-frontend.cfg.in
View file @
e6d97b35
...
@@ -15,7 +15,6 @@ parts =
...
@@ -15,7 +15,6 @@ parts =
caucase-updater
caucase-updater
caucase-updater-promise
caucase-updater-promise
frontend-caddy-graceful
frontend-caddy-graceful
not-found-html
port-redirection
port-redirection
promise-frontend-caddy-configuration
promise-frontend-caddy-configuration
promise-caddy-frontend-v4-https
promise-caddy-frontend-v4-https
...
@@ -338,10 +337,10 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
...
@@ -338,10 +337,10 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
hash-files = ${caddy-wrapper:rendered}
hash-files = ${caddy-wrapper:rendered}
[not-found-html]
[not-found-html]
recipe =
slapos.cookbook:symbolic.link
recipe =
plone.recipe.command
target-directory = ${caddy-directory:document-root
}
update-command = ${:command
}
link-binary =
filename = notfound.html
{{ parameter_dict['template_not_found_html'] }
}
command = ln -sf {{ parameter_dict['template_not_found_html'] }} ${caddy-directory:document-root}/${:filename
}
[caddy-directory]
[caddy-directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
...
@@ -362,7 +361,7 @@ access-log = ${directory:log}/frontend-access.log
...
@@ -362,7 +361,7 @@ access-log = ${directory:log}/frontend-access.log
error-log = ${directory:log}/frontend-error.log
error-log = ${directory:log}/frontend-error.log
pid-file = ${directory:run}/httpd.pid
pid-file = ${directory:run}/httpd.pid
frontend-graceful-command = ${frontend-caddy-validate:rendered} && kill -USR1 $(cat ${:pid-file})
frontend-graceful-command = ${frontend-caddy-validate:rendered} && kill -USR1 $(cat ${:pid-file})
not-found-file = ${caddy-directory:document-root}/
notfound.html
not-found-file = ${caddy-directory:document-root}/
${not-found-html:filename}
master-certificate = ${caddy-directory:master-autocert-dir}/master.pem
master-certificate = ${caddy-directory:master-autocert-dir}/master.pem
# Communication with ATS
# Communication with ATS
cache-port = ${trafficserver-variable:input-port}
cache-port = ${trafficserver-variable:input-port}
...
@@ -463,19 +462,19 @@ context =
...
@@ -463,19 +462,19 @@ context =
[trafficserver-records-config]
[trafficserver-records-config]
< = trafficserver-jinja2-template-base
< = trafficserver-jinja2-template-base
template = {{ parameter_dict['template_trafficserver_records_config
_location'] }}/{{ parameter_dict['template_trafficserver_records_config_filename
'] }}
template = {{ parameter_dict['template_trafficserver_records_config'] }}
filename = records.config
filename = records.config
extra-context =
extra-context =
import os_module os
import os_module os
[trafficserver-storage-config]
[trafficserver-storage-config]
< = trafficserver-jinja2-template-base
< = trafficserver-jinja2-template-base
template = {{ parameter_dict['template_trafficserver_storage_config
_location'] }}/{{ parameter_dict['template_trafficserver_storage_config_filename
'] }}
template = {{ parameter_dict['template_trafficserver_storage_config'] }}
filename = storage.config
filename = storage.config
[trafficserver-logging-config]
[trafficserver-logging-config]
< = trafficserver-jinja2-template-base
< = trafficserver-jinja2-template-base
template = {{ parameter_dict['template_trafficserver_logging_config
_location'] }}/{{ parameter_dict['template_trafficserver_logging_config_filename
'] }}
template = {{ parameter_dict['template_trafficserver_logging_config'] }}
filename = logging.config
filename = logging.config
[trafficserver-remap-config]
[trafficserver-remap-config]
...
...
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