Commit 419fbc81 authored by Tim Smith's avatar Tim Smith
Browse files

Copyrights and rubocop fixes

parent 0836d804
......@@ -2,7 +2,7 @@
# Cookbook Name:: ossec
# Library:: helpers
#
# Copyright 2015, Opscode, Inc.
# Copyright 2015-2016, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
......@@ -36,11 +36,11 @@ include_recipe 'ossec::install_agent'
dbag_name = node['ossec']['data_bag']['name']
dbag_item = node['ossec']['data_bag']['ssh']
if node['ossec']['data_bag']['encrypted']
ossec_key = Chef::EncryptedDataBagItem.load(dbag_name, dbag_item)
else
ossec_key = data_bag_item(dbag_name, dbag_item)
end
ossec_key = if node['ossec']['data_bag']['encrypted']
Chef::EncryptedDataBagItem.load(dbag_name, dbag_item)
else
data_bag_item(dbag_name, dbag_item)
end
directory "#{node['ossec']['dir']}/.ssh" do
owner 'ossec'
......
......@@ -46,7 +46,7 @@ end
file "#{node['ossec']['dir']}/etc/ossec.conf" do
owner 'root'
group 'ossec'
mode 0440
mode '0440'
manage_symlink_source true
notifies :restart, 'service[ossec]'
......@@ -62,7 +62,7 @@ end
file "#{node['ossec']['dir']}/etc/shared/agent.conf" do
owner 'root'
group 'ossec'
mode 0440
mode '0440'
notifies :restart, 'service[ossec]'
# Even if agent.cont is not appropriate for this kind of
......
......@@ -2,7 +2,7 @@
# Cookbook Name:: ossec
# Recipe:: install_agent
#
# Copyright 2015, Opscode, Inc.
# Copyright 2015-2016, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
# Cookbook Name:: ossec
# Recipe:: install_server
#
# Copyright 2015, Opscode, Inc.
# Copyright 2015-2016, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
# Cookbook Name:: ossec
# Recipe:: repository
#
# Copyright 2015, Opscode, Inc.
# Copyright 2015-2016, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......
......@@ -44,11 +44,11 @@ end
dbag_name = node['ossec']['data_bag']['name']
dbag_item = node['ossec']['data_bag']['ssh']
if node['ossec']['data_bag']['encrypted']
ossec_key = Chef::EncryptedDataBagItem.load(dbag_name, dbag_item)
else
ossec_key = data_bag_item(dbag_name, dbag_item)
end
ossec_key = if node['ossec']['data_bag']['encrypted']
Chef::EncryptedDataBagItem.load(dbag_name, dbag_item)
else
data_bag_item(dbag_name, dbag_item)
end
directory "#{node['ossec']['dir']}/.ssh" do
owner 'root'
......
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