+remote_file "#{Chef::Config[:file_cache_path]}/cloudflare-ipv4-list" do
+ source "https://www.cloudflare.com/ips-v4"
+ compile_time true
+ ignore_failure true
+end
+
+cloudflare_ipv4 = IO.read("#{Chef::Config[:file_cache_path]}/cloudflare-ipv4-list").lines.map(&:chomp)
+
+remote_file "#{Chef::Config[:file_cache_path]}/cloudflare-ipv6-list" do
+ source "https://www.cloudflare.com/ips-v6"
+ compile_time true
+ ignore_failure true
+end
+
+cloudflare_ipv6 = IO.read("#{Chef::Config[:file_cache_path]}/cloudflare-ipv6-list").lines.map(&:chomp)
+