Provides custom resources that set up an APT repository suitable for using the reprepro tool to manage distributions and components.
See the reprepro documentation for more information about reprepro itself, including the man(1) page in the package http://mirrorer.alioth.debian.org/
This repository has been archived for now, but if you want to help us with this cookbook drop by our slack channel #sous-chef on the chef community slack and let us know!
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
- Debian/Ubuntu
- Chef 15.3+
- nginx
- apache2 You'll need to generate the PGP key separately and provide it as resource properties or manage it before converging the repository resource.
This cookbook no longer ships recipes or attributes. See migration.md for the breaking change from node['reprepro'] attributes and reprepro::default recipes to resource properties.
Create a repository by declaring reprepro_repository directly.
reprepro_repository 'default' do
fqdn 'apt.example.com'
repo_dir '/srv/apt'
incoming '/srv/apt_incoming'
description 'APT Repository for our packages'
codenames %w(noble jammy)
allow ['unstable>sid', 'stable>squeeze']
pgp_email 'packages@example.com'
pgp_fingerprint 'PGP Fingerprint for the key'
pgp_public "-----BEGIN PGP PUBLIC KEY BLOCK-----\n-----END PGP PUBLIC KEY BLOCK-----\n"
pgp_private "-----BEGIN PGP PRIVATE KEY BLOCK-----\n-----END PGP PRIVATE KEY BLOCK-----\n"
pulls(
'name' => 'noble',
'from' => 'noble',
'component' => 'main'
)
architectures %w(amd64 i386 all source)
endServe the repository with Apache or Nginx.
reprepro_apache 'apt_repo' do
fqdn 'apt.example.com'
repo_dir '/srv/apt'
pgp_email 'packages@example.com'
endreprepro_nginx 'apt_repo' do
fqdn 'apt.example.com'
repo_dir '/srv/apt'
endAdd or remove .deb files.
reprepro_deb '/tmp/example_1.0.0_amd64.deb' do
distribution 'noble'
action :add
endThis project exists thanks to all the people who contribute.
Thank you to all our backers!
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.