freight

pdk
Setup freight, an apt repository management tool

Puppet-Finland team

puppetfinland

4,867 downloads

4,265 latest version

3.8 quality score

Version information

  • 2.0.3 (latest)
  • 2.0.2
released Jun 14th 2018
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
  • Debian
    ,
    Ubuntu

Start using this module

Documentation

puppetfinland/freight — version 2.0.3 Jun 14th 2018

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

Setup freight and nginx (using puppetfinland/nginx):

class { '::freight':
  manage_webserver      =>  true,
  document_root         =>  '/var/www/html',
  allow_address_ipv4    => 'anyv4',
  allow_address_ipv6    => 'anyv6',
  default_gpg_key_id    => 'C42A86B2',
  default_gpg_key_email => 'john@example.org',
}

Create two freight repositories:

# This one uses the default GPG keys defined above and stores the passphrase
# on disk
::freight::config { 'repo1':
  varcache            => '/var/www/html/repo1',
  gpg_key_passphrase  => 'mysecret',
}

# This one uses a custom set of GPG keys and always prompts for the
# passphrase
::freight::config { 'repo2':
  varcache      => '/var/www/html/repo2',
  gpg_key_id    => '974C71E8',
  gpg_key_email => 'jane@example.org',
}

For details look at these manifests: