Version information
released Jun 19th 2020
This version is compatible with:
- Puppet Enterprise 2018.1.x, 2017.3.x
- Puppet 5.x
- ,
Start using this module
Add this module to your Puppetfile:
mod 'infomaniak-archvsync', '0.1.12'
Learn more about managing modules with a PuppetfileDocumentation
infomaniak/archvsync — version 0.1.12 Jun 19th 2020
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
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.
Dependencies
- puppetlabs/apache (>=3.0.0)
- puppetlabs/inifile (>=2.0.0)
- puppetlabs/stdlib (>=5.0.0)