Coder Social home page Coder Social logo

ansible-role-package-manager-mirror's Introduction

Package Manager Mirror

Configure a mirror of standard repositories for APT, YUM, and DNF. Useful if you have a caching proxy and want to ensure cache hits.

Role Variables

pkgmgr_proxy

If defined, the role will configure the package manager to use this URL as a proxy.

pkgmgr_mirror

A dictionary of repository settings with distribution names as keys. Values are different for different distributions.

Debian-like

Values are dictionaries in which either default key or the specific release name key must be present. The release name is taken from Ansible fact ansible_lsb.codename, and defaults to ansible_distribution_release if it's not set (varies by release).

Values are dictionaries where url member is the base URL (one level above subdirectories like dists and pool, see example below), and components member is a list of distribution components, such as main, contrib, or non-free.

RH-like

Values are base URLs (see example below). They should be one level above the following subdirectories:

  • major release numbers in CentOS and Scientific
  • releases in Fedora

Example Playbook

---
- hosts: all
  roles:
    - role: package-manager-mirror
      pkgmgr_proxy: http://proxy.example.net:3128
      pkgmgr_mirror:
        Debian: 
          default:
            url: http://ftp.us.debian.org/debian/
            components:
              - main
              - contrib
          sid:
            components:
              - main
              - non-free
              - contrib
        CentOS:
          default: http://mirror.centos.org/centos
        Scientific:
          default: http://ftp.scientificlinux.org/linux/scientific
        Fedora:
          default: http://download.fedoraproject.org/pub/fedora/linux
          v24: http://archives.fedoraproject.org/pub/archive/fedora/linux

License

GPLv3+

Author Information

Copyright 2018, Development Gateway

ansible-role-package-manager-mirror's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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.