sous-chefs / certificate

Development repository for the certificate cookbook
https://supermarket.chef.io/cookbooks/certificate
73 stars 43 forks source link

Expose final paths #33

Closed mal closed 9 years ago

mal commented 10 years ago

Move some path logic into resource to expose final paths. Useful for doing things like this in other recipes:

cert1 = certificate_manage 'example.com'
where_did_it_go1 = cert1.certificate # => /etc/ssl/certs/example.com.pem

cert2 = certificate_manage 'example.com' do
  cert_path '/bobs/emporium'
  create_subfolders false
end
where_did_it_go2 = cert2.key # => /bobs/emporium/example.com.key
atomic-penguin commented 10 years ago

I like the idea, but I think a usage example needs to accompany the change in the readme.

mal commented 10 years ago

Cool, added a version of the example in this PR, tweaked for (hopefully) increased clarity.

mal commented 9 years ago

@atomic-penguin pre-christmas personal PR triage, any hope of movement on this one?

Maks3w commented 9 years ago

@tmatilai ping

fletchowns commented 9 years ago

This would be really really useful