Fetching checksums at compile time breaks the cookbook in complicated environments
jjustice6 opened this issue · 6 comments
We have a situation in which we have a cookbook that sets up SSL certificates as well as installing common dev software, including Vagrant.
We use remote_directory
to put certs in a folder, notifying a block that runs either update-ca-certificates
(if Ubuntu) or update-ca-trust
(if RHEL). This is pretty straightforward stuff.
The problem is that happens at runtime, and if I want to also install Vagrant, the cookbook fails at compile time because, without the SSL certificates, it can't go get the checksums here: https://github.com/jtimberman/vagrant-cookbook/blob/master/libraries/helpers.rb#L60-L63
I think this could be fairly easily mitigated and probably will tackle it moving to custom resources.
http://notetoself.vrensk.com/2008/09/verified-https-in-ruby/ is probably relevant for a solution. Using the chef supplied cacerts.pem file will pull in the usual suspects for CA authorities.
Should be fixed by #91. Up for review.
#91 was merged.
Awesome, this is great news.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.