Forge Home

aptsimplesoftware

Install a bunch of packages via apt

6,659 downloads

6,659 latest version

1.9 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

  • 0.1.0 (latest)
released Dec 17th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'flatline235-aptsimplesoftware', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add flatline235-aptsimplesoftware
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install flatline235-aptsimplesoftware --version 0.1.0

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

flatline235/aptsimplesoftware — version 0.1.0 Dec 17th 2016

aptsimplesoftware

Table of Contents

  1. Description
  2. Setup - The basics of getting started with aptsimplesoftware
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Description

This module configures the apt repositories, installs software from normal and backports sources and uninstalls software.

You should use this if you want to install a bunch of packages at once, which require no further configuration or actions.

Setup

What aptsimplesoftware affects

  • This module clears out /etc/apt/sources.list and puts the repositories into /etc/apt/sources.list.d/*
  • Also in /etc/apt/preferences.d/* files may be touched to pin packages
  • Obiously this (un)installs software
  • Dependencies: the apt module by puppetlabs
  • Configure your mirrors!
  • uninstalls happen before installs (so unknown dependencies may be reinstalled)

Usage

Example:

class { 'aptsimplesoftware':
  mirror => 'ftp://localmirror',
  mirror_security => 'ftp://localsecuritymirror',
  release => 'jessie',
  repos => 'main contrib non-free',
  packages => [ 'vim', 'tmux' ],
  backports => [ 'kernel', 'that', 'supports', 'this', 'centurys', 'hardware' ],
  uninstall => [ 'emacs', 'screen' ]
}

All parameters are optional.

Reference

Parameters:

  • mirror The mirror to use. Defaults to ftp://ftp.debian.org

  • mirror_security The mirror for security updates to use. Defaults to ftp://security.debian.org

  • release The release name. Default to jessie

  • repos The repos to include. Defaults to main contrib non-free

  • packages The list of packages to install. Defaults to an empty list.

  • backports The list of packages to install from backports. Defaults to an empty list.

  • uninstall The list of packages to uninstall. Defaults to an empty list.

Limitations

This module assumes debian, release jessie. On other releases or distributions based on debian your milage my vary. Also I haven't done much of any testing as of yet.

Development

Pull request and bug reports are very welcome :) License is Apache 2.0