To not waste an effort that I put into creating a puppetised Squid proxy configuration with hiera node YAML file, I published it on GitHub. Maybe it will show up to be useful for someone. The details are under the below link.
Default Squid proxy configuration provided with a hiera node YAML file