Giter VIP home page Giter VIP logo

ansible-squid3's Introduction

squid3

Build Status

Ansible role to install and configure squid3 proxy/cache in RedHat/CentOS/Debian/Ubuntu.

Requirements

No specific requirements.

Role Variables

This role uses a mix of defaults and host_vars/group_vars.
The defaults are used to set the most common squid3 config, present by default in the package repository.
The host_vars/group_vars are best suited to create custom ACLs and http_access sentences.

Globals

Variables listed in defaults/main.yml

squid3__localnets
List of internal subnets, used to create the default ACL named localnet.

squid3__sslports
List of ports authorized to used the CONNECT methhod, encrypted traffic.

squid3__safeports
List of ports authorized to use HTTP in plain text.

squid3__port
Port that squid3 daemon runs.

squid3__outgoing_adress
If specified, tells which IP address to direct the traffic.

squid3__acls
ACLs from default squid.conf. Can be used to create custom ACLs.

squid3__http_access
http_access directives from default squid.conf. Can be used to create custom http_access.

squid3__refresh_pattern
List of refresh_paterrn from defalt squid.conf. Can be used to create custom refresh_pattern.

squid3__logrotate_rotate Sets the number of saved rotated logfiles. Default to 7

Custom

Custom variables. Can be used in defaults/main.yml, but it was made to best if in host_vars and group_vars.

squid3__custom_localnets
Custom localnets.

squid3__custom_sslports
Custom SSL ports.

squid3__custom_safeports
Custom HTTP ports.

squid3__custom_acls
Custom ACLs.

squid3__custom_http_access
Custom http_access directives.

squid3__custom_refresh_pattern
Custom refresh_pattern directives.

squid3__custom_diskcache Custom cache_dir directives.

Dependencies

None.

Example Playbook

This role comes with a Vagrant file. Just fire a vagrant up for testing.
Once the environemnt is up, just run vagrant provision or ansible-playbook -i tests/inventory tests/test.yml.
As the date of this commit, the parameter host_key_checking=False it's not working. If some SSH connection error occurs, try to execute export ANSIBLE_HOST_KEY_CHECKING=False. You can use the tests/vars.yml as a playground to test the variables.

License

MIT

Author Information

Jonatas Baldin | mailto:[email protected] | http://deployeveryday.com

Hamza Tümtürk

Tobias Kramheller

ansible-squid3's People

Contributors

hamza-tumturk avatar micxer avatar

Watchers

 avatar  avatar  avatar

Forkers

tkramheller

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.