-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seapath_setup_network.yaml: move syslog in role
The syslog-ng configuration of Debian is done inside the debian role. This commit moves the Yocto configuration of syslog also in a role. We should think of a way to have a common syslog-configuration, but I will not do it now. I openned an issue for that : #591 Signed-off-by: Erwann Roussy <[email protected]>
- Loading branch information
Showing
4 changed files
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (C) 2024 Savoir-faire Linux, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
- name: Restart systemd syslog-ng | ||
ansible.builtin.service: | ||
name: syslog-ng@default | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright (C) 2024 Savoir-faire Linux, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# This role setup up syslog-ng on machine | ||
|
||
--- | ||
- name: Set observer IP address in /etc/syslog-ng/syslog-ng.conf | ||
lineinfile: | ||
dest: /etc/syslog-ng/syslog-ng.conf | ||
regexp: '(^\s*#?\s*(ip\()?)("[1-9][0-9]{2}(\.[0-9]{1,3}){3}")(\))?' | ||
line: '\1"{{ syslog_server_ip }}"\5' | ||
backrefs: true | ||
state: present | ||
notify: | ||
- Restart systemd syslog-ng | ||
when: syslog_server_ip is defined |