-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support drop-in config in journald rules on RHEL
This patch adds support for the drop-in configuration files in directory /etc/systemd/journald.conf.d/ to these rules configuring journald: - journald_compress - journald_forward_to_syslog - journald_storage This patch levarages the systemd_dropin_configuration template that is already in use on SLES 15. This patch also adds some test scenarios for the systemd_dropin_configuration template and fixes issues revealed by these test scenarios. Resolves: https://issues.redhat.com/browse/RHEL-14484
- Loading branch information
Showing
18 changed files
with
68 additions
and
8 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
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
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
6 changes: 6 additions & 0 deletions
6
shared/templates/systemd_dropin_configuration/tests/correct_dir.pass.sh
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,6 @@ | ||
#!/bin/bash | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" |
5 changes: 5 additions & 0 deletions
5
shared/templates/systemd_dropin_configuration/tests/correct_master.pass.sh
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,5 @@ | ||
#!/bin/bash | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
echo "$PARAM=$VALUE" >> "$MASTER_CFG_FILE" |
9 changes: 9 additions & 0 deletions
9
shared/templates/systemd_dropin_configuration/tests/multiple_vals.fail.sh
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,9 @@ | ||
#!/bin/bash | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" | ||
echo "$PARAM=badval" >> "$DROPIN_DIR/gss.conf" | ||
echo "$PARAM=foobarzoo" >> "$MASTER_CFG_FILE" |
5 changes: 5 additions & 0 deletions
5
shared/templates/systemd_dropin_configuration/tests/wrong_dir.fail.sh
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,5 @@ | ||
#!/bin/bash | ||
PARAM="{{{ PARAM }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=badval" >> "$DROPIN_DIR/ssg.conf" |
5 changes: 5 additions & 0 deletions
5
shared/templates/systemd_dropin_configuration/tests/wrong_master.fail.sh
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,5 @@ | ||
#!/bin/bash | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
echo "$PARAM=badval" >> "$MASTER_CFG_FILE" |
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
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