Merge "Add support of remote logging"
This commit is contained in:
commit
52edc3fea4
@ -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
|
domain: String value, default to false. If set, domain setting is configured
|
||||||
in dnsmasq.
|
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
|
### Hardware Inspection Support
|
||||||
|
|
||||||
Bifrost also supports the installation of ironic-inspector in standalone
|
Bifrost also supports the installation of ironic-inspector in standalone
|
||||||
|
@ -341,4 +341,6 @@
|
|||||||
command: semodule -e ironic_policy
|
command: semodule -e ironic_policy
|
||||||
when: (ansible_os_family == 'RedHat' or ansible_os_family == 'Suse') and
|
when: (ansible_os_family == 'RedHat' or ansible_os_family == 'Suse') and
|
||||||
ansible_selinux.status == 'enabled' and ansible_selinux.mode == "enforcing"
|
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 != ""
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
command: systemctl daemon-reload
|
command: systemctl daemon-reload
|
||||||
when: init_template == 'systemd_template.j2'
|
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"
|
- name: "Start database service"
|
||||||
service: name={{ mysql_service_name }} state=started
|
service: name={{ mysql_service_name }} state=started
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
*.* @{{ remote_syslog_server }}:{{ remote_syslog_port|default('514') }}
|
@ -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.
|
Loading…
Reference in New Issue
Block a user