property :name, String
property :domains, [String, Array], :required => true
-property :fallback_certificate, String
action :create do
node.default[:letsencrypt][:certificates][name] = {
content certificate
backup false
manage_symlink_source false
+ force_unlink true
end
file "/etc/ssl/private/#{name}.key" do
content key
backup false
manage_symlink_source false
- end
- elsif fallback_certificate
- link "/etc/ssl/certs/#{name}.pem" do
- to "#{fallback_certificate}.pem"
- end
-
- link "/etc/ssl/private/#{name}.key" do
- to "#{fallback_certificate}.key"
+ force_unlink true
end
else
template "/tmp/#{name}.ssl.cnf" do