Permalink
Browse files

add the template in the recipe

  • Loading branch information...
1 parent 5cb3ad7 commit 358946b33d43ffaa64c210b4da9d32880bfbe342 @lazzarello committed Mar 29, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 cookbooks/nginx/recipes/default.rb
@@ -15,6 +15,11 @@
creates "#{node[:nginx][:ssldir]}/genrsa.key"
end
+template node[:nginx][:ssldir] do
+ source "config.tpl.erb"
+
+end
+
execute "gen_self_signed" do
command "openssl req -new -x509 -batch -config #{node[:nginx][:ssldir]}/#{node[:nginx][:cert_config_file]} -key #{node[:nginx][:ssldir]}/genrsa.key -out #{node[:nginx][:ssldir]}/cert.pem -days 1095"
creates "#{node[:nginx][:ssldir]}/cert.pem"

0 comments on commit 358946b

Please sign in to comment.