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:
Juan Antonio Osorio Robles 2017-10-24 15:24:24 +03:00
parent 2c3671b27e
commit 7dadabf52b
3 changed files with 30 additions and 0 deletions

View 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 %}

View File

@ -74,6 +74,7 @@ _PROFILE_OPTS = [
'qdrouterd', 'qdrouterd',
'rabbitmq', 'rabbitmq',
'redis', 'redis',
'rsyslog',
'skydive', 'skydive',
'tgtd', 'tgtd',
], ],

View File

@ -0,0 +1,4 @@
---
features:
- |
Add Rsyslog image.