Giter Club home page Giter Club logo

ansible-debmirror's Introduction

debmirror

This role sets up a mirror of debian-style repositories using aptly.

Requirements

None

Role Variables

Variable Description Required Default
mirror_gpg_password Password for the GPG (generated) key yes
mirror_gpg_name_real Real name to create the key with yes
mirror_gpg_name_email Eamil address for the key yes
mirror_server_port Port on which to serve the mirror no 80
mirror_server_docroot Where the mirror is located on dist no ~/.aptly/public
mirror_gpg_key_type Key type no RSA
mirror_gpg_key_length Length of the GPG key no 2048
mirror_gpg_expire_date The date the key expires no 0 (never)
mirror_gpg_name_comment Comment with which to create the key no Signing repos
mirrors A list of key/value pairs describing the mirrors to create yes

A description of a mirror in the mirrors list contains the following

Variable Description Required Example Default
name The name of the mirror as used by aptly yes aptly-squeeze
uri Location of the repository to be mirrored yes "http://repo.aptly.info/"
distribution Distribution component of the mirror yes squeeze
components List of the components of the mirror yes ['main']
architectures List of the architectures to mirror no ['amd64'] []
trusted_key GPG key id of the mirrored repository to trust yes 2A194991
keyserver Location of the server to get trusted_key from no "keys.gnupg.net" "keys.gnupg.net"
keyring Name of the keyring to store the trusted_key no "trustedkeys.gpg" "trustedkeys.gpg"
within Number of seconds within which a mirror is considered up-to-date no 3600 0

Dependencies

None

Example Playbook

- hosts: all
  sudo: yes
  roles:
    - role: mirror

      mirror_gpg_password: "my super secret unknown passphrase"
      mirror_gpg_name_real: Firstname Lastname
      mirror_gpg_name_email: [email protected]

      mirrors:

        - name: aptly-squeeze-amd64
          uri: "http://repo.aptly.info/"
          distribution: "squeeze"
          components: ['main']
          trusted_key: 2A194991
          architectures: ['amd64']
          within: "{{ 60*60 }}"

License

BSD

Author Information

Badi' Abdul-Wahid [email protected]

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.