Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
0f4fbd9a
Commit
0f4fbd9a
authored
Oct 24, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip erp5 rsyslog
parent
d1ea6223
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
4 deletions
+52
-4
software/caddy-frontend/buildout.hash.cfg
software/caddy-frontend/buildout.hash.cfg
+1
-1
software/caddy-frontend/instance-apache-frontend.cfg.in
software/caddy-frontend/instance-apache-frontend.cfg.in
+21
-1
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+2
-0
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+2
-2
stack/erp5/instance-balancer.cfg.in
stack/erp5/instance-balancer.cfg.in
+25
-0
stack/erp5/instance.cfg.in
stack/erp5/instance.cfg.in
+1
-0
No files found.
software/caddy-frontend/buildout.hash.cfg
View file @
0f4fbd9a
...
@@ -22,7 +22,7 @@ md5sum = 5784bea3bd608913769ff9a8afcccb68
...
@@ -22,7 +22,7 @@ md5sum = 5784bea3bd608913769ff9a8afcccb68
[profile-caddy-frontend]
[profile-caddy-frontend]
filename = instance-apache-frontend.cfg.in
filename = instance-apache-frontend.cfg.in
md5sum =
e7d7e1448b6420657e953026573311ca
md5sum =
743e58ba32be267afaeb0c62ad84c954
[profile-caddy-replicate]
[profile-caddy-replicate]
filename = instance-apache-replicate.cfg.in
filename = instance-apache-replicate.cfg.in
...
...
software/caddy-frontend/instance-apache-frontend.cfg.in
View file @
0f4fbd9a
...
@@ -817,7 +817,27 @@ caddy-log-directory = ${caddy-directory:slave-log}
...
@@ -817,7 +817,27 @@ caddy-log-directory = ${caddy-directory:slave-log}
[backend-haproxy-rsyslogd-configuration]
[backend-haproxy-rsyslogd-configuration]
<= jinja2-template-base
<= jinja2-template-base
template = ${software-release-path:template-backend-haproxy-rsyslogd-conf}
template = inline:
module(
load="imuxsock"
SysSock.Name="{{ configuration['log-socket'] }}")
# Just simply output the raw line without any additional information, as
# haproxy emits enough information by itself
# Also cut out first empty space in msg, which is related to rsyslogd
# internal and end up cutting on 8k, as it's default of $MaxMessageSize
template(name="rawoutput" type="string" string="%msg:2:8192%\n")
$ActionFileDefaultTemplate rawoutput
$FileCreateMode 0600
$DirCreateMode 0700
$Umask 0022
$WorkDirectory {{ configuration['spool-directory'] }}
{#- emit all not catched messages to full log file #}
*.* {{ configuration['log-file'] }}
rendered = ${directory:etc}/backend-haproxy-rsyslogd.conf
rendered = ${directory:etc}/backend-haproxy-rsyslogd.conf
extra-context =
extra-context =
section configuration backend-haproxy-rsyslogd-config
section configuration backend-haproxy-rsyslogd-config
...
...
stack/erp5/buildout.cfg
View file @
0f4fbd9a
...
@@ -11,6 +11,7 @@ extends =
...
@@ -11,6 +11,7 @@ extends =
../../component/gzip/buildout.cfg
../../component/gzip/buildout.cfg
../../component/xz-utils/buildout.cfg
../../component/xz-utils/buildout.cfg
../../component/haproxy/buildout.cfg
../../component/haproxy/buildout.cfg
../../component/rsyslogd/buildout.cfg
../../component/findutils/buildout.cfg
../../component/findutils/buildout.cfg
../../component/librsvg/buildout.cfg
../../component/librsvg/buildout.cfg
../../component/imagemagick/buildout.cfg
../../component/imagemagick/buildout.cfg
...
@@ -179,6 +180,7 @@ context =
...
@@ -179,6 +180,7 @@ context =
key gzip_location gzip:location
key gzip_location gzip:location
key xz_utils_location xz-utils:location
key xz_utils_location xz-utils:location
key haproxy_location haproxy:location
key haproxy_location haproxy:location
key rsyslogd_location rsyslogd:location
key instance_common_cfg instance-common:rendered
key instance_common_cfg instance-common:rendered
key jsl_location jsl:location
key jsl_location jsl:location
key jupyter_enable_default erp5-defaults:jupyter-enable-default
key jupyter_enable_default erp5-defaults:jupyter-enable-default
...
...
stack/erp5/buildout.hash.cfg
View file @
0f4fbd9a
...
@@ -70,7 +70,7 @@ md5sum = cc19560b9400cecbd23064d55c501eec
...
@@ -70,7 +70,7 @@ md5sum = cc19560b9400cecbd23064d55c501eec
[template]
[template]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
5c5250112b87a3937f939028f9594b85
md5sum =
22619a2b75abcc8cc19bd46b585173ab
[monitor-template-dummy]
[monitor-template-dummy]
filename = dummy.cfg
filename = dummy.cfg
...
@@ -90,7 +90,7 @@ md5sum = 2f3ddd328ac1c375e483ecb2ef5ffb57
...
@@ -90,7 +90,7 @@ md5sum = 2f3ddd328ac1c375e483ecb2ef5ffb57
[template-balancer]
[template-balancer]
filename = instance-balancer.cfg.in
filename = instance-balancer.cfg.in
md5sum =
5b2d44397b5b03897c665b56325cdf79
md5sum =
2220ec6fadae05530b8322a19e82e7f1
[template-haproxy-cfg]
[template-haproxy-cfg]
filename = haproxy.cfg.in
filename = haproxy.cfg.in
...
...
stack/erp5/instance-balancer.cfg.in
View file @
0f4fbd9a
...
@@ -202,10 +202,34 @@ extensions = jinja2.ext.do
...
@@ -202,10 +202,34 @@ extensions = jinja2.ext.do
[{{ section('haproxy') }}]
[{{ section('haproxy') }}]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
# TODO: can we change this to services-on-watch ? will it break resilience test ?
wrapper-path = ${directory:services}/haproxy
wrapper-path = ${directory:services}/haproxy
command-line = "{{ parameter_dict['haproxy'] }}/sbin/haproxy" -f "${haproxy-cfg:rendered}"
command-line = "{{ parameter_dict['haproxy'] }}/sbin/haproxy" -f "${haproxy-cfg:rendered}"
hash-files = ${haproxy-cfg:rendered}
hash-files = ${haproxy-cfg:rendered}
[rsyslogd-config]
log-socket = ${directory:run}/log.sck
log-file = ${directory:log}/backend-haproxy.log
pid-file = ${directory:run}/rsyslogd.pid
spool-directory = ${directory:rsyslogd-spool}
graceful-command = kill -HUP $(cat ${:pid-file})
;caddy-log-directory = ${caddy-directory:slave-log}
[rsyslogd-config-file]
<= jinja2-template-base
template = inline: $ TODO {software-release-path:template-backend-haproxy-rsyslogd-conf}
rendered = ${directory:etc}/rsyslogd.conf
extra-context =
section configuration rsyslogd-config
[{{ section ('rsyslogd') }}]
recipe = slapos.cookbook:wrapper
command-line = {{ parameter_dict['rsyslogd'] }}/bin/rsyslogd -i ${rsyslogd-config:pid-file} -n -f ${rsyslogd-config-file:rendered}
wrapper-path = ${directory:services-on-watch}/rsyslogd
;hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
; TODO
[apache-conf-ssl]
[apache-conf-ssl]
cert = ${directory:apache-conf}/apache.crt
cert = ${directory:apache-conf}/apache.crt
key = ${directory:apache-conf}/apache.pem
key = ${directory:apache-conf}/apache.pem
...
@@ -320,6 +344,7 @@ run = ${:var}/run
...
@@ -320,6 +344,7 @@ run = ${:var}/run
log = ${:var}/log
log = ${:var}/log
srv = ${buildout:directory}/srv
srv = ${buildout:directory}/srv
apachedex = ${monitor-directory:private}/apachedex
apachedex = ${monitor-directory:private}/apachedex
rsyslogd-spool = ${:run}/rsyslogd-spool
[{{ section('resiliency-exclude-file') }}]
[{{ section('resiliency-exclude-file') }}]
# Generate rdiff exclude file in case of resiliency
# Generate rdiff exclude file in case of resiliency
...
...
stack/erp5/instance.cfg.in
View file @
0f4fbd9a
...
@@ -59,6 +59,7 @@ openssl-location = {{ openssl_location }}
...
@@ -59,6 +59,7 @@ openssl-location = {{ openssl_location }}
apache = {{ apache_location }}
apache = {{ apache_location }}
openssl = {{ openssl_location }}
openssl = {{ openssl_location }}
haproxy = {{ haproxy_location }}
haproxy = {{ haproxy_location }}
rsyslogd = {{ rsyslogd_location }}
apachedex-location = {{ bin_directory }}/apachedex
apachedex-location = {{ bin_directory }}/apachedex
run-apachedex-location = {{ bin_directory }}/runApacheDex
run-apachedex-location = {{ bin_directory }}/runApacheDex
promise-check-apachedex-result = {{ bin_directory }}/check-apachedex-result
promise-check-apachedex-result = {{ bin_directory }}/check-apachedex-result
...
...
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