Skip to content

sous-chefs/reprepro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

234 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

reprepro Cookbook

Cookbook Version Build Status OpenCollective OpenCollective License

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/

Help Wanted

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!

Maintainers

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.

Requirements

Platforms

  • Debian/Ubuntu

Chef

  • Chef 15.3+

Cookbooks

  • 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.

Resources

Migration

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.

Repository

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)
end

Web Servers

Serve the repository with Apache or Nginx.

reprepro_apache 'apt_repo' do
  fqdn 'apt.example.com'
  repo_dir '/srv/apt'
  pgp_email 'packages@example.com'
end
reprepro_nginx 'apt_repo' do
  fqdn 'apt.example.com'
  repo_dir '/srv/apt'
end

Package Management

Add or remove .deb files.

reprepro_deb '/tmp/example_1.0.0_amd64.deb' do
  distribution 'noble'
  action :add
end

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website

Sponsor this project

Packages

 
 
 

Contributors