Commit 4892f3c2 authored by Tim Smith's avatar Tim Smith
Browse files

Make modes strings to preserve the leading 0

parent 5fa95f27
......@@ -45,21 +45,21 @@ ossec_key = if node['ossec']['data_bag']['encrypted']
directory "#{node['ossec']['dir']}/.ssh" do
owner 'ossec'
group 'ossec'
mode 0750
mode '0750'
end
template "#{node['ossec']['dir']}/.ssh/authorized_keys" do
source 'ssh_key.erb'
owner 'ossec'
group 'ossec'
mode 0600
mode '0600'
variables(key: ossec_key['pubkey'])
end
file "#{node['ossec']['dir']}/etc/client.keys" do
owner 'ossec'
group 'ossec'
mode 0660
mode '0660'
end
include_recipe 'ossec::common'
......@@ -53,14 +53,14 @@ ossec_key = if node['ossec']['data_bag']['encrypted']
directory "#{node['ossec']['dir']}/.ssh" do
owner 'root'
group 'ossec'
mode 0750
mode '0750'
end
template "#{node['ossec']['dir']}/.ssh/id_rsa" do
source 'ssh_key.erb'
owner 'root'
group 'ossec'
mode 0600
mode '0600'
variables(key: ossec_key['privkey'])
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