-
Notifications
You must be signed in to change notification settings - Fork 14
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 #303 from ferricoxide/Issue_297-II
ACTUALLY corrects the behavior in #297
- Loading branch information
Showing
7 changed files
with
63 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Restart sshd service if any of: | ||
# | ||
# Cause changes to the /etc/ssh/sshd_config file | ||
# | ||
################################################################# | ||
# Standard outputter function | ||
diag_out() { | ||
echo "${1}" | ||
} | ||
|
||
diag_out "----------------------------------------" | ||
diag_out "Service Restart: sshd" | ||
diag_out " Restart the sshd service if any of:" | ||
diag_out " * file_RHEL-07-040690" | ||
diag_out " * file_RHEL-07-040680" | ||
diag_out " * file_RHEL-07-040660" | ||
diag_out " * file_RHEL-07-040700" | ||
diag_out " * file_RHEL-07-040670" | ||
diag_out " Change the /etc/ssh/sshd_config file" | ||
diag_out "----------------------------------------" | ||
|
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,17 @@ | ||
# Restart sshd service if any of: | ||
# | ||
# Cause changes to the /etc/ssh/sshd_config file | ||
# | ||
################################################################# | ||
{%- set stig_id = 'restart_sshd' %} | ||
{%- set helperLoc = 'ash-linux/el7/STIGbyID/cat2/files' %} | ||
{%- set svcName = 'sshd' %} | ||
|
||
script_{{ stig_id }}-describe: | ||
cmd.script: | ||
- source: salt://{{ helperLoc }}/{{ stig_id }}.sh | ||
- cwd: /root | ||
|
||
service_sshd_restart: | ||
service.running: | ||
- name: '{{ svcName }}' |