Navigation Menu

Skip to content

Commit

Permalink
add the template in the recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
lazzarello committed Mar 29, 2012
1 parent 5cb3ad7 commit 358946b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cookbooks/nginx/recipes/default.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 358946b

Please sign in to comment.