Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

squid (47) Versions 0.5.1

Installs/configures squid as a simple caching proxy

Policyfile
Berkshelf
Knife
cookbook 'squid', '= 0.5.1', :supermarket
cookbook 'squid', '= 0.5.1'
knife supermarket install squid
knife supermarket download squid
README
Dependencies
Changelog
Quality -%

squid Cookbook

Configures squid as a caching proxy.

Recipes

default

The default recipe installs squid and sets up simple proxy caching. As of now, the options you may change are the port (node['squid']['port']) and the network the caching proxy is available on the subnet from node.ipaddress (ie. "192.168.1.0/24") but may be overridden with node['squid']['network']. The size of objects allowed to be stored has been bumped up to allow for caching of installation files.
An optional (node['squid']['cache_peer']), if set, will be written verbatim to the template.

Usage

Include the squid recipe on the server. Other nodes may search for this node as their caching proxy and use the node.ipaddress and node['squid']['port'] to point at it.

Databags are able to be used for storing host & url acls and also which hosts/nets are able to access which hosts/url

Example Databags

squid_urls - yubikey item

{
  "urls": [
    "^https://api.yubico.com/wsapi/2.0/verify"
  ],
  "id": "yubikey"
}

squid_hosts - bastion item

{
  "type": "src",
  "id": "bastion",
  "net": [
    "192.168.0.2/32"
  ]
}

squid_acls - bastion item

{
  "id": "bastion",
  "acl": [
    [
      "yubikey",
      "allow"
    ],
    [
      "all",
      "deny"
    ]
  ]
}

License & Authors

Copyright 2012-2014 Chef Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

squid Cookbook CHANGELOG

This file is used to list changes made in each version of the squid cookbook.

v0.5.1 (2014-09-02)

  • Support Ubuntu 14.04. (@maciejmajewski)

v0.5.0 (2014-07-25)

  • Don't assume default interface is 'eth0' (@juliandunn)
  • Fix breakage on Fedora (@juliandunn)
  • Enable a simple way to add arbitrary directives to the bottom of the squid.conf (@dansweeting)
  • Add enable_cache_dir attribute to allow disabling the cache_dir (@phutchins)
  • Permit configuration of cache size (@dschlenk)
  • Fix all test harnesses, Rubocop violations

v0.4.2 (2014-03-27)

  • [COOK-4320] - Add support for ubuntu 13 to the squid cookbook

v0.4.0 (2014-02-27)

  • [COOK-4373] Add conditional output of optional attribute for cache_peer to template
  • [COOK-4376] remove duplicated attributes
  • [COOK-4377] Generate a sysconfig on Fedora

v0.3.0 (2014-02-18)

[COOK-4066] - squid attributes should be default and not set/normal

v0.2.10

Bug

  • COOK-3936 - configure squid cache size on disk
  • updating style and test harness

v0.2.8

Bug

  • COOK-3590 - Fix hard-coded daemon listen port

v0.2.6

Cleanup in 5fc5df4 (v0.2.4) was a bit overzealous:

Ubuntu needs upstart provider specified for the service or reload
failures may occur.

v0.2.4

Bug

  • [COOK-2979]: squid cookbook has foodcritic failures
  • [COOK-3042]: squid acl incorrect for centos 5

v0.1.0-v0.2.2

Initial public release and migration from @mattray's repository. Changelog was not created/updated at this time.

No quality metric results found