Skip to content

Commit

Permalink
Add Ubuntu tests for auditd_audispd_configure_remote_server
Browse files Browse the repository at this point in the history
  • Loading branch information
mpurg committed Apr 30, 2024
1 parent 92d5407 commit f916f59
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# packages = audit,audispd-plugins
# platform = multi_platform_ubuntu
# variable = var_auditspd_remote_server=logcollector

{{{ set_config_file(path=audisp_conf_path + "/audisp-remote.conf",
parameter="Remote_server",
value="logcollector",
separator=" = ") }}}

{{{ set_config_file(path=audisp_conf_path + "/plugins.d/au-remote.conf",
parameter="Active",
value="yes",
separator=" = ") }}}

echo "#Remote_server = logcollector" > {{{ audisp_conf_path ~ "/audisp-remote.conf" }}}
echo "#Active = yes" > {{{ audisp_conf_path ~ "/plugins.d/au-remote.conf" }}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# packages = audit,audispd-plugins
# platform = multi_platform_ubuntu
# variable = var_auditspd_remote_server=logcollector

echo " Remote_server = logcollector" > {{{ audisp_conf_path ~ "/audisp-remote.conf" }}}
echo " Active = yes" > {{{ audisp_conf_path ~ "/plugins.d/au-remote.conf" }}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# packages = audit,audispd-plugins
# platform = multi_platform_ubuntu
# variable = var_auditspd_remote_server=logcollector

echo " Remote_server = logcollector" > {{{ audisp_conf_path ~ "/audisp-remote.conf" }}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# packages = audit,audispd-plugins
# platform = multi_platform_ubuntu
# variable = var_auditspd_remote_server=logcollector

echo " Remote_server = wrongvalue" > {{{ audisp_conf_path ~ "/audisp-remote.conf" }}}
echo " Active = yes" > {{{ audisp_conf_path ~ "/plugins.d/au-remote.conf" }}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# packages = audit,audispd-plugins
# platform = multi_platform_ubuntu
# variable = var_auditspd_remote_server=logcollector

echo " Remote_server = logcollector" > {{{ audisp_conf_path ~ "/audisp-remote.conf" }}}
echo " Active = no" > {{{ audisp_conf_path ~ "/plugins.d/au-remote.conf" }}}

0 comments on commit f916f59

Please sign in to comment.