From 4124d67a2fa4ffd22ecd9cde5dcbd2391d16e78a Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sat, 28 Jan 2017 11:25:33 -0500 Subject: [PATCH 1/2] Fixed node set usage --- metadata.rb | 2 +- recipes/server.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata.rb b/metadata.rb index acdc301..f757b58 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ maintainer_email "psi-jack@linux-help.org" license "GPLv2" description "Installs/Configures ossec" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version "1.2.2" +version "1.2.3" issues_url "http://git.linux-help.org/Linux-Help/ossec-ng/issues" source_url "http://git.linux-help.org/Linux-Help/ossec-ng" diff --git a/recipes/server.rb b/recipes/server.rb index 9bcb783..93e5845 100644 --- a/recipes/server.rb +++ b/recipes/server.rb @@ -132,7 +132,7 @@ else end if ossec_agent_should_be_removed?(agent_id) Chef::Log.info("OSSEC: Removing old agent '#{agent_id}' - '#{params[:name]}'") - node["ossec"]["agents"].delete(agent_id) + node.normal["ossec"]["agents"].delete(agent_id) else Chef::Log.info("OSSEC: agent '#{agent_id}' - '#{params[:name]}' is candidate for removal") node.normal["ossec"]["agents"][agent_id]["status"] = 'candidate_for_removal' From 6ac19930e7bae6715393774ea1f7ee927025e892 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sat, 28 Jan 2017 11:27:30 -0500 Subject: [PATCH 2/2] Updated Berksfile --- Berksfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Berksfile b/Berksfile index 0974c9d..efd8898 100644 --- a/Berksfile +++ b/Berksfile @@ -2,7 +2,7 @@ source "https://supermarket.chef.io" metadata -cookbook "selinux_policy", "~> 0.9.5" +cookbook "selinux_policy", "~> 1.1.1" cookbook "yum-atomic", "~> 0.1.2" -cookbook "yum-epel" +cookbook "yum-epel", "~> 2.1.1" cookbook "apt-atomic", "~> 0.1.2"