You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use unless instead of not_if otherwise OpenSSL::PKey::DH runs every time.
unless ::File.exist?("#{key_dir}/dh#{key_size}.pem")
But when I wrap the cookbook and have my own key process, this still runs at converge time on the first run unnecessarily. If you use the recommended key size (4096) this is extremely painful.
My workaround was to send a key size smaller than I'm actually using (side-effects unknown), but lazy evaluation should deal with this nicely.
You already use unless...
But when I wrap the cookbook and have my own key process, this still runs at converge time on the first run unnecessarily. If you use the recommended key size (4096) this is extremely painful.
My workaround was to send a key size smaller than I'm actually using (side-effects unknown), but lazy evaluation should deal with this nicely.
https://docs.chef.io/resource_common.html#lazy-evaluation
The text was updated successfully, but these errors were encountered: