#
-# Cookbook Name:: squid
+# Cookbook:: squid
# Recipe:: default
#
-# Copyright 2011, OpenStreetMap Foundation
+# Copyright:: 2011, OpenStreetMap Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
mode "0755"
end
+address_families = %w[AF_UNIX AF_INET]
+
+# address_families << "AF_INET6" unless node.interfaces(:family => :inet6).empty?
+
systemd_service "squid" do
description "Squid caching proxy"
after ["network.target", "nss-lookup.target"]
private_devices true
protect_system "full"
protect_home true
+ restrict_address_families address_families
restart "on-failure"
timeout_sec 0
end