Skip to content

Commit

Permalink
add support for ssl generation on rhel family
Browse files Browse the repository at this point in the history
  • Loading branch information
agoddard committed Oct 31, 2014
1 parent 8bf410f commit 073232d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions metadata.rb
Expand Up @@ -11,5 +11,6 @@
depends 'rc_mon'
depends 'nginx'
depends 'build-essential'
depends 'ssl_certificate'

suggests 'bag_config', '>= 2.0.0'
10 changes: 10 additions & 0 deletions recipes/nginx.rb
Expand Up @@ -22,6 +22,16 @@
geminabox_key = node[:geminabox][:ssl][:key]
geminabox_cert = node[:geminabox][:ssl][:cert]
end

if node.platform_family?("rhel")
cert = ssl_certificate "geminabox" do
namespace "geminabox"
notifies :restart, "service[nginx]"
end
geminabox_key = cert.key_content
geminabox_cert = cert.cert_content
end

end

if(geminabox_key && geminabox_cert)
Expand Down

0 comments on commit 073232d

Please sign in to comment.