Commit 381791cf authored by Joshua Timberman's avatar Joshua Timberman
Browse files

Merge pull request #5 from hw-cookbooks/fix/client-key-fqdn

[COOK-2740] Use FQDN for a client name
parents d2a0a58e 195fd46c
......@@ -32,8 +32,8 @@ search(:node, "ossec:[* TO *] NOT role:#{node['ossec']['server_role']}") do |n|
ssh_hosts << n['ipaddress'] if n['keys']
execute "#{agent_manager} -a --ip #{n['ipaddress']} -n #{n['hostname']}" do
not_if "grep '#{n['hostname']} #{n['ipaddress']}' #{node['ossec']['user']['dir']}/etc/client.keys"
execute "#{agent_manager} -a --ip #{n['ipaddress']} -n #{n['fqdn'][0..31]}" do
not_if "grep '#{n['fqdn'][0..31]} #{n['ipaddress']}' #{node['ossec']['user']['dir']}/etc/client.keys"
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment