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
103
Merge Requests
103
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
f38903c1
Commit
f38903c1
authored
May 22, 2013
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logrotate for apaches and squid
parent
06ffdde5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
software/apache-frontend/apache-slave-list.cfg.in
software/apache-frontend/apache-slave-list.cfg.in
+2
-1
software/apache-frontend/instance.cfg
software/apache-frontend/instance.cfg
+27
-2
No files found.
software/apache-frontend/apache-slave-list.cfg.in
View file @
f38903c1
...
@@ -20,7 +20,8 @@ context =
...
@@ -20,7 +20,8 @@ context =
template = {{ template_slave_configuration }}
template = {{ template_slave_configuration }}
filename = {{ '%s.conf' % slave_reference }}
filename = {{ '%s.conf' % slave_reference }}
extra-context =
extra-context =
section slave_parameter {{ 'slave-instance-%s-configuration' % slave_reference }}
key apache_custom_https {{ 'slave-instance-%s-configuration:apache_custom_https' % slave_reference }}
key apache_custom_http {{ 'slave-instance-%s-configuration:apache_custom_http' % slave_reference }}
raw https_port {{ https_port }}
raw https_port {{ https_port }}
raw http_port {{ http_port }}
raw http_port {{ http_port }}
{{ '\n' }}
{{ '\n' }}
...
...
software/apache-frontend/instance.cfg
View file @
f38903c1
...
@@ -9,6 +9,8 @@ parts =
...
@@ -9,6 +9,8 @@ parts =
certificate-authority
certificate-authority
squid-cache
squid-cache
logrotate-entry-apache
logrotate-entry-apache
logrotate-entry-apache-cached
logrotate-entry-squid
apache-frontend
apache-frontend
apache-cached
apache-cached
switch-softwaretype
switch-softwaretype
...
@@ -53,7 +55,7 @@ squid-cache = $${:srv}/squid_cache
...
@@ -53,7 +55,7 @@ squid-cache = $${:srv}/squid_cache
[switch-softwaretype]
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
recipe = slapos.cookbook:softwaretype
default = $${dynamic-
custom-
template-slave-list:rendered}
default = $${dynamic-template-slave-list:rendered}
[instance-parameter]
[instance-parameter]
# Fetches parameters defined in SlapOS Master for this instance.
# Fetches parameters defined in SlapOS Master for this instance.
...
@@ -104,7 +106,6 @@ extra-context =
...
@@ -104,7 +106,6 @@ extra-context =
raw template_slave_configuration ${template-slave-configuration:target}
raw template_slave_configuration ${template-slave-configuration:target}
raw template_rewrite_cached ${template-rewrite-cached:target}
raw template_rewrite_cached ${template-rewrite-cached:target}
[dynamic-custom-template-slave-list]
[dynamic-custom-template-slave-list]
< = jinja2-template-base
< = jinja2-template-base
template = ${template-custom-slave-list:target}
template = ${template-custom-slave-list:target}
...
@@ -312,6 +313,30 @@ sharedscripts = true
...
@@ -312,6 +313,30 @@ sharedscripts = true
notifempty = true
notifempty = true
create = true
create = true
[logrotate-entry-apache-cached]
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = apache-cached
log = $${apache-configuration:cache-error-log} $${apache-configuration:cache-access-log}
frequency = daily
rotatep-num = 30
post = ${buildout:bin-directory}/killpidfromfile $${apache-configuration:cache-pid-file} SIGUSR1
sharedscripts = true
notifempty = true
create = true
[logrotate-entry-squid]
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = squid
log = $${squid-cache:cache-log-path} $${squid-cache:access-log-path}
frequency = daily
rotatep-num = 30
post = ${buildout:bin-directory}/killpidfromfile $${apache-configuration:pid-file} SIGHUP
sharedscripts = true
notifempty = true
create = true
[squid-cache]
[squid-cache]
recipe = slapos.cookbook:squid
recipe = slapos.cookbook:squid
prepare-path = $${directory:service}/squid-prepare
prepare-path = $${directory:service}/squid-prepare
...
...
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