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
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
942d2f51
Commit
942d2f51
authored
Jan 24, 2019
by
Guillaume Hervier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/caddy-frontend: Use stack/logrotate instead of redoing it.
parent
7d90a118
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
62 deletions
+5
-62
software/caddy-frontend/buildout.hash.cfg
software/caddy-frontend/buildout.hash.cfg
+1
-1
software/caddy-frontend/common.cfg
software/caddy-frontend/common.cfg
+0
-3
software/caddy-frontend/instance-apache-frontend.cfg.in
software/caddy-frontend/instance-apache-frontend.cfg.in
+4
-58
No files found.
software/caddy-frontend/buildout.hash.cfg
View file @
942d2f51
...
@@ -22,7 +22,7 @@ md5sum = c801b7f9f11f0965677c22e6bbe9281b
...
@@ -22,7 +22,7 @@ md5sum = c801b7f9f11f0965677c22e6bbe9281b
[template-apache-frontend]
[template-apache-frontend]
filename = instance-apache-frontend.cfg.in
filename = instance-apache-frontend.cfg.in
md5sum =
2c8e1dd8df4a225b4a8d8f70688a85ca
md5sum =
39b35496a8af756a89fdd83b54547f4c
[template-apache-replicate]
[template-apache-replicate]
filename = instance-apache-replicate.cfg.in
filename = instance-apache-replicate.cfg.in
...
...
software/caddy-frontend/common.cfg
View file @
942d2f51
...
@@ -5,7 +5,6 @@ extends =
...
@@ -5,7 +5,6 @@ extends =
../../component/dash/buildout.cfg
../../component/dash/buildout.cfg
../../component/caddy/buildout.cfg
../../component/caddy/buildout.cfg
../../component/gzip/buildout.cfg
../../component/gzip/buildout.cfg
../../component/dcron/buildout.cfg
../../component/logrotate/buildout.cfg
../../component/logrotate/buildout.cfg
../../component/rdiff-backup/buildout.cfg
../../component/rdiff-backup/buildout.cfg
../../component/trafficserver/buildout.cfg
../../component/trafficserver/buildout.cfg
...
@@ -21,7 +20,6 @@ parts +=
...
@@ -21,7 +20,6 @@ parts +=
template-caddy-replicate
template-caddy-replicate
caddy
caddy
dcron
logrotate
logrotate
rdiff-backup
rdiff-backup
npm-modules
npm-modules
...
@@ -83,7 +81,6 @@ caddy = ${caddy:output}
...
@@ -83,7 +81,6 @@ caddy = ${caddy:output}
caddy_location = ${caddy:location}
caddy_location = ${caddy:location}
curl = ${curl:location}
curl = ${curl:location}
dash = ${dash:location}
dash = ${dash:location}
dcron = ${dcron:location}
gzip = ${gzip:location}
gzip = ${gzip:location}
logrotate = ${logrotate:location}
logrotate = ${logrotate:location}
openssl = ${openssl:location}
openssl = ${openssl:location}
...
...
software/caddy-frontend/instance-apache-frontend.cfg.in
View file @
942d2f51
...
@@ -8,9 +8,6 @@ extends =
...
@@ -8,9 +8,6 @@ extends =
parts =
parts =
directory
directory
configtest
configtest
logrotate
cron
cron-entry-logrotate
ca-frontend
ca-frontend
ca-frontend-service
ca-frontend-service
certificate-authority
certificate-authority
...
@@ -76,12 +73,6 @@ service = ${:etc}/service
...
@@ -76,12 +73,6 @@ service = ${:etc}/service
etc-run = ${:etc}/run
etc-run = ${:etc}/run
promise = ${:etc}/promise
promise = ${:etc}/promise
logrotate-backup = ${:backup}/logrotate
logrotate-entries = ${:etc}/logrotate.d
cron-entries = ${:etc}/cron.d
crontabs = ${:etc}/crontabs
cronstamps = ${:etc}/cronstamps
ca-dir = ${:srv}/ssl
ca-dir = ${:srv}/ssl
varnginx = ${:var}/nginx
varnginx = ${:var}/nginx
...
@@ -367,64 +358,19 @@ apache-ca-certificate = ${configuration:apache-ca-certificate}
...
@@ -367,64 +358,19 @@ apache-ca-certificate = ${configuration:apache-ca-certificate}
extra-context =
extra-context =
key content :apache-ca-certificate
key content :apache-ca-certificate
[cron]
recipe = slapos.cookbook:cron
dcrond-binary = {{ parameter_dict['dcron'] }}/sbin/crond
cron-entries = ${directory:cron-entries}
crontabs = ${directory:crontabs}
cronstamps = ${directory:cronstamps}
catcher = ${cron-simplelogger:wrapper}
binary = ${directory:service}/crond
[cron-simplelogger]
recipe = slapos.cookbook:simplelogger
wrapper = ${directory:bin}/cron_simplelogger
log = ${directory:log}/cron.log
[cron-entry-logrotate]
<= cron
recipe = slapos.cookbook:cron.d
name = logrotate
frequency = 0 0 * * *
command = ${logrotate:wrapper}
# Deploy Logrotate
[logrotate]
recipe = slapos.cookbook:logrotate
# Binaries
logrotate-binary = {{ parameter_dict['logrotate'] }}/sbin/logrotate
gzip-binary = {{ parameter_dict['gzip'] }}/bin/gzip
gunzip-binary = {{ parameter_dict['gzip'] }}/bin/gunzip
# Directories
wrapper = ${directory:bin}/logrotate
conf = ${directory:etc}/logrotate.conf
logrotate-entries = ${directory:logrotate-entries}
backup = ${directory:logrotate-backup}
state-file = ${directory:srv}/logrotate.status
[logrotate-entry-caddy]
[logrotate-entry-caddy]
<= logrotate
<= logrotate-entry-base
recipe = slapos.cookbook:logrotate.d
name = caddy
name = caddy
log = ${caddy-configuration:error-log} ${caddy-configuration:access-log}
log = ${caddy-configuration:error-log} ${caddy-configuration:access-log}
frequency = daily
rotate-num = 30
rotatep-num = 30
post = ${frontend-caddy-lazy-graceful:rendered} &
post = ${frontend-caddy-lazy-graceful:rendered} &
sharedscripts = true
notifempty = true
create = true
[logrotate-entry-nginx]
[logrotate-entry-nginx]
<= logrotate
<= logrotate-entry-base
recipe = slapos.cookbook:logrotate.d
name = caddy-nginx
name = caddy-nginx
log = ${nginx-configuration:error_log} ${nginx-configuration:access_log}
log = ${nginx-configuration:error_log} ${nginx-configuration:access_log}
frequency = daily
rotate-num = 30
rotatep-num = 30
post = ${nginx-configuration:nginx-graceful-command}
post = ${nginx-configuration:nginx-graceful-command}
sharedscripts = true
notifempty = true
create = true
#################
#################
# Trafficserver
# Trafficserver
...
...
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