Created
July 7, 2011 22:59
-
-
Save williamsjj/1070755 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["cert1", "cert2"].each do |cert| | |
cookbook_file "#{node[:nginx][:dir]}/ssl/#{cert}" do | |
owner node[:nginx][:user] | |
mode "0600" | |
source "ssl/#{cert}" | |
notifies :run, "execute[add chain certificate #{cert}]" | |
notifies :restart, "service[nginx]" | |
end | |
execute "add chain certificate #{cert}" do | |
action :nothing | |
command "cat #{node[:nginx][:dir]}/ssl/#{cert} #{chain_cert} > #{node[:nginx][:dir]}/ssl/composite-#{cert}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment