Unverified Commit 8e72ecb0 authored by Dan Webb's avatar Dan Webb Committed by GitHub
Browse files

Merge pull request #92 from sliim-cookbooks/fix-node-search-string

Fixed search query according to the doc
parents b59b6a45 55064bf0
......@@ -23,7 +23,7 @@ ssh_hosts = []
search_string = 'ossec:[* TO *]'
search_string << " AND chef_environment:#{node['ossec']['server_env']}" if node['ossec']['server_env']
search_string << " AND NOT role:#{node['ossec']['server_role']} AND NOT fqdn:#{node['fqdn']}"
search_string << " AND (NOT role:#{node['ossec']['server_role']}) AND (NOT fqdn:#{node['fqdn']})"
filter_keys = { 'fqdn' => ['fqdn'], 'ipaddress' => ['ipaddress'] }
......
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