Forge Home

freight

Setup freight, an apt repository management tool

6,731 downloads

528 latest version

3.1 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

  • 3.0.3 (latest)
  • 3.0.1
  • 2.0.3
  • 2.0.2
released May 13th 2022
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'puppetfinland-freight', '3.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetfinland-freight
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetfinland-freight --version 3.0.3

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

puppetfinland/freight — version 3.0.3 May 13th 2022

freight

A Puppet module for managing Freight - a tool for creating and maintaining apt repositories easily. This module can manage several freight repositories residing on the same host.

Module usage

This module no longer includes automatic webserver configuration as of version 3.0.0. So you need to ensure that you have a webserver hosting your apt repository. Here's an example based on puppet/nginx:

include ::nginx

file { '/var/www':
  ensure => 'directory',
  owner  => 'root',
  group  => 'root',
  mode   => '0755',
}

::nginx::resource::server { 'apt.example.org':
  autoindex => 'on'
  www_root  => '/var/www',
}

class { '::freight':
  document_root => '/var/www/debian',
}

::freight::config { 'foobar':
  varcache                => '/var/www/debian/foobar',
  gpg_key_id              => 'C42A86B2',
  gpg_key_email           => 'john@example.org',
  gpg_key_passphrase      => 'secret',
  gpg_private_key_content => 'private-key-content',
  gpg_public_key_content  => 'public-key-content',
}

Multiple repositories can be created by adding more entries of ::freight::config.