Add rsyslog image
This adds a basic rsyslog image with TLS support. For CentOS, we need to specify the addition of the log normalizer and json parsing modules; this is not necessary for debian based systems as they're part of the base rsyslog package. Change-Id: Ic40cbdaa182fa664c2329e0336259566307165d4
This commit is contained in:
parent
2c3671b27e
commit
7dadabf52b
25
docker/rsyslog/Dockerfile.j2
Normal file
25
docker/rsyslog/Dockerfile.j2
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
||||||
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||||
|
|
||||||
|
{% block rsyslog_header %}{% endblock %}
|
||||||
|
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set rsyslog_packages = [
|
||||||
|
'rsyslog',
|
||||||
|
'rsyslog-gnutls',
|
||||||
|
'rsyslog-mmjsonparse',
|
||||||
|
'rsyslog-mmnormalize',
|
||||||
|
] %}
|
||||||
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
||||||
|
{% set rsyslog_packages = [
|
||||||
|
'rsyslog',
|
||||||
|
'rsyslog-gnutls',
|
||||||
|
] %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{{ macros.install_packages(rsyslog_packages | customizable("packages")) }}
|
||||||
|
|
||||||
|
{% block rsyslog_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
@ -74,6 +74,7 @@ _PROFILE_OPTS = [
|
|||||||
'qdrouterd',
|
'qdrouterd',
|
||||||
'rabbitmq',
|
'rabbitmq',
|
||||||
'redis',
|
'redis',
|
||||||
|
'rsyslog',
|
||||||
'skydive',
|
'skydive',
|
||||||
'tgtd',
|
'tgtd',
|
||||||
],
|
],
|
||||||
|
4
releasenotes/notes/rsyslog-13d5798163953322.yaml
Normal file
4
releasenotes/notes/rsyslog-13d5798163953322.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Add Rsyslog image.
|
Loading…
Reference in New Issue
Block a user