-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9214 from vojtapolasek/install_postfix_rule_stabi…
…lization add new rule package_postfix_installed (stabilization)
- Loading branch information
Showing
11 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
linux_os/guide/services/mail/package_postfix_installed/rule.yml
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,34 @@ | ||
documentation_complete: true | ||
|
||
title: 'The Postfix package is installed' | ||
|
||
description: |- | ||
A mail server is required for sending emails. | ||
{{{ describe_package_install(package="postfix") }}} | ||
rationale: |- | ||
Emails can be used to notify designated personnel about important | ||
system events such as failures or warnings. | ||
severity: medium | ||
|
||
identifiers: | ||
cce@rhel8: CCE-85983-5 | ||
cce@rhel9: CCE-85984-3 | ||
|
||
references: | ||
srg: SRG-OS-000046-GPOS-00022 | ||
stigid@rhel8: RHEL-08-030030 | ||
|
||
ocil_clause: 'the package is not installed' | ||
|
||
ocil: '{{{ ocil_package(package="postfix") }}}' | ||
|
||
fixtext: '{{{ describe_package_install(package="postfix") }}}' | ||
|
||
srg_requirement: '{{{ srg_requirement_package_installed("postfix") }}}' | ||
|
||
template: | ||
name: package_installed | ||
vars: | ||
pkgname: postfix |
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 |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
create: true | ||
state: present | ||
|
||
- name: Update postfix aliases | ||
ansible.builtin.command: | ||
cmd: newaliases |
1 change: 1 addition & 0 deletions
1
...de/services/mail/postfix_client/postfix_client_configure_mail_alias/tests/correct.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
# packages = postfix | ||
|
||
echo "root: system.administrator@mail.mil" > /etc/aliases |
1 change: 1 addition & 0 deletions
1
...rvices/mail/postfix_client/postfix_client_configure_mail_alias/tests/file_missing.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
# packages = postfix | ||
|
||
rm -f /etc/aliases |
1 change: 1 addition & 0 deletions
1
...vices/mail/postfix_client/postfix_client_configure_mail_alias/tests/no_root_alias.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
# packages = postfix | ||
|
||
sed -i '/root/d' /etc/aliases |
1 change: 1 addition & 0 deletions
1
...uide/services/mail/postfix_client/postfix_client_configure_mail_alias/tests/wrong.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
# packages = postfix | ||
|
||
echo "root: invalid_address" > /etc/aliases |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
CCE-85983-5 | ||
CCE-85984-3 | ||
CCE-85985-0 | ||
CCE-85988-4 | ||
CCE-85997-5 | ||
|
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