Skip to content

Commit

Permalink
add path parameter add remove paths for commands
Browse files Browse the repository at this point in the history
  • Loading branch information
vcerenu committed Oct 12, 2023
1 parent cfcfdc0 commit 80c106e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,9 @@
${agent_auth_option_manager} ${agent_auth_option_agent} ${agent_auth_option_password} ${agent_auth_option_address}"

exec { 'agent-auth-linux':
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'],
command => $agent_auth_command,
unless => "/bin/egrep -q '.' ${::wazuh::params_agent::keys_file}",
unless => "egrep -q '.' ${::wazuh::params_agent::keys_file}",
require => Concat['agent_ossec.conf'],
before => Service[$agent_service_name],
notify => Service[$agent_service_name],
Expand Down

0 comments on commit 80c106e

Please sign in to comment.