end
if File.exist?("/etc/openvpn/#{name}.key")
- node.set[:openvpn][:keys][name] = IO.read("/etc/openvpn/#{name}.key")
+ node.normal[: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 0600
+ mode 0o600
content peer[:openvpn][:keys][name]
end
end
source "tunnel.conf.erb"
owner "root"
group "root"
- mode 0644
+ mode 0o644
variables :name => name,
:address => node[:openvpn][:address],
:port => node[:openvpn][:tunnels][name][:port],