end
if File.exist?("/etc/openvpn/#{name}.key")
- node.normal[:openvpn][:keys][name] = IO.read("/etc/openvpn/#{name}.key")
+ node.default[:openvpn][:keys][name] = IO.read("/etc/openvpn/#{name}.key")
end
elsif peer && peer[:openvpn]
file "/etc/openvpn/#{name}.key" do
owner "root"
group "root"
- mode 0o600
+ mode "600"
content peer[:openvpn][:keys][name]
end
end
source "tunnel.conf.erb"
owner "root"
group "root"
- mode 0o644
+ mode "644"
variables :name => name,
:address => node[:openvpn][:address],
:port => node[:openvpn][:tunnels][name][:port],