Merge "Add support of remote logging"

This commit is contained in:
Jenkins 2016-12-23 20:42:39 +00:00 committed by Gerrit Code Review
commit 52edc3fea4
5 changed files with 22 additions and 1 deletions

View File

@ -149,6 +149,12 @@ enable_cors_credential_support: Boolean value, default false. This variable
domain: String value, default to false. If set, domain setting is configured
in dnsmasq.
remote_syslog_server: String value, default undefined. If set, rsyslog is
configured to send logs to this server.
remote_syslog_port: String value, default is 514. If set, custom port is
configured for remote syslog server.
### Hardware Inspection Support
Bifrost also supports the installation of ironic-inspector in standalone

View File

@ -341,4 +341,6 @@
command: semodule -e ironic_policy
when: (ansible_os_family == 'RedHat' or ansible_os_family == 'Suse') and
ansible_selinux.status == 'enabled' and ansible_selinux.mode == "enforcing"
- name: "Configure remote logging"
template: src=10-rsyslog-remote.conf.j2 dest=/etc/rsyslog.d/10-rsyslog-remote.conf
when: remote_syslog_server is defined and remote_syslog_server != ""

View File

@ -17,6 +17,10 @@
command: systemctl daemon-reload
when: init_template == 'systemd_template.j2'
- name: "Ensure rsyslog is running with current config"
service: name=rsyslog state=restarted
when: remote_syslog_server is defined and remote_syslog_server != ""
- name: "Start database service"
service: name={{ mysql_service_name }} state=started

View File

@ -0,0 +1 @@
*.* @{{ remote_syslog_server }}:{{ remote_syslog_port|default('514') }}

View File

@ -0,0 +1,8 @@
---
features:
- Add support of remote logging. This feature allows to send logs
from local syslog server and not collects logs from services on
baremetal nodes. To collect from the actual running nodes requires
configuration injected into each deployed host.
Syslog server address and port can be specified in options
``remote_syslog_server`` and ``remote_syslog_port`` respectively.