Forge Home

archvsync

Puppet module for Debian Archive Sync

8,077 downloads

206 latest version

2.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.0 (latest)
  • 0.1.15
  • 0.1.14
  • 0.1.13
  • 0.1.12
  • 0.1.11
  • 0.1.10
  • 0.1.9
  • 0.1.8
  • 0.1.7
  • 0.1.6
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
  • 0.0.9
  • 0.0.8
released Jan 24th 2023
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x
  • Puppet 5.x
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'infomaniak-archvsync', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add infomaniak-archvsync
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install infomaniak-archvsync --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

infomaniak/archvsync — version 1.0.0 Jan 24th 2023

What's this?

A tiny puppet module for setting-up a Debian mirror. It will setup for you:

  • apache
  • pure-ftpd
  • rsync
  • ssh push reciever, aka ftpsync
  • ssh push sender, aka runmirrors

This module can setup mirrors for:

  • rebular Debian
  • debian-archive
  • debian-security
  • ubuntu
  • debian-cd

For each archive (except debian-cd), this module makes it possible to exclude suites from the mirror.

It's also possible to only mirror some architectures.

Currently, mirror push and runmirror is only possible for the regular Debian repository (ie: not for debian-security, debian-archive or ubuntu, where the ftpsync is only done daily via the cron.daily facility).

How to use it?

Simply write this in a manifest:

class {'::archvsync': }

What if I want more control?

None of the parameters are mandatory, though you can customize a bit your installation. Here's an exhaustive list:

  class {'::archvsync':
    manage_apache         => true,
    manage_pureftpd       => true,
    manage_rsync          => true,
    configure_rsync       => true,
    package_ensure        => 'present',
    mirrorname            => $::fqdn,
    to                    => '/home/ftp/debian/',
    mailto                => 'toto@example.com',
    homedir               => '/home/ftp',
    hub                   => 'false',
    rsync_host            => 'ftp.fr.debian.org',
    rsync_path            => 'debian',

    also_sync_deb_cd       => true,
    deb_cd_path            => 'debian-cd',
    also_sync_deb_security => true,
    deb_security_path      => 'debian-security',
    also_sync_deb_archive  => true,
    deb_archive_path       => 'debian-archive',
    also_sync_ubuntu       => true,
    ubuntu_path            => 'ubuntu',

    info_maintainer       => 'Toor Op <root@localhost>',
    info_sponsor          => 'World Company SA <https://www.example.com>',
    info_country          => 'US',
    info_location         => 'Nowhere city',
    info_throughput       => '10Gb',
    arch_include          => 'amd64 source',
    arch_exclude          => '',
    logdir                => '/home/ftp/log',
    setup_daily_cron      => false,
    accept_push           => true,
    push_ssh_key          => 'ssh-rsa AAAAB3NzaC1yc2......ExZgE= zigo-at-debian.org',
    enable_runmirrors     => true,
    runmirrors_hostnames  => ['debian.example.com', 'debian.example.net'],

  }

Except the last 5 parameters, what you see above are the default values. Of course, you should change push_ssh_key with the public key given by the upstream server.

What's missing in this module?

It should currently be feature-complete. Please test and report.