module apt

Public Instance Methods

builddep( )
conf( $content, $ensure => 'present', $priority => '50' )
force( $release => 'false', $version => 'false', $timeout => '300', $cfg_files => 'none', $cfg_missing => 'false' )
hold( $version, $ensure => 'present', $package => 'title', $priority => '1001' )

Define apt::hold

This defined type allows you to hold a package based on the version you require. It's implemented by dropping an apt preferences file pinning the package to the version you require.

Parameters

version

The version at which you wish to pin a package.

This can either be the full version, such as 4:2.11.8.1-5, or a partial version, such as 4:2.11.*

package

default: +$title+, the title/name of the resource.

Name of the package that apt is to hold.

priority

default: 1001

The default priority of 1001 causes this preference to always win. By setting the priority to a number greater than 1000 apt will always install this version even if it means downgrading the currently installed version.

key( $key => 'title', $ensure => 'present', $key_content => 'undef', $key_source => 'undef', $key_server => 'undef', $key_options => 'undef' )

Define: apt::key

The apt::key defined type allows for keys to be added to apt's keyring which is used for package validation. This defined type uses the apt_key native type to manage keys. This is a simple wrapper around apt_key with a few safeguards in place.

Parameters

key

default: +$title+, the title/name of the resource

Is a GPG key ID. This key ID is validated with a regex enforcing it to only contain valid hexadecimal characters, be precisely 8 or 16 characters long and optionally prefixed with 0x.

ensure

default: present

The state we want this key in, may be either one of:

  • present

  • absent

key_content

default: undef

This parameter can be used to pass in a GPG key as a string in case it cannot be fetched from a remote location and using a file resource is for other reasons inconvenient.

key_source

default: undef

This parameter can be used to pass in the location of a GPG key. This URI can take the form of a:

  • URL: ftp, http or https

  • path: absolute path to a file on the target system.

key_server

default: undef

The keyserver from where to fetch our GPG key. It can either be a domain name or url. It defaults to undef which results in apt_key's default keyserver being used, currently keyserver.ubuntu.com.

key_options

default: undef

Additional options to pass on to `apt-key adv –keyserver-options`.

pin( $ensure => 'present', $explanation => '[( Puppet::Parser::AST::String "" nil ), ( Puppet::Parser::AST::Variable $caller_module_name nil ), ( Puppet::Parser::AST::String ": " nil ), ( Puppet::Parser::AST::Variable $name nil ), ( Puppet::Parser::AST::String "" nil )]', $order => '', $packages => '*', $priority => '0', $release => '', $origin => '', $version => '', $codename => '', $release_version => '', $component => '', $originator => '', $label => '' )
ppa( $ensure => 'present', $release => '::lsbdistcodename', $options => 'apt::params::ppa_options' )
source( $comment => 'name', $ensure => 'present', $location => '', $release => 'UNDEF', $repos => 'main', $include_src => 'true', $include_deb => 'true', $required_packages => 'false', $key => 'undef', $key_server => 'keyserver.ubuntu.com', $key_content => 'undef', $key_source => 'undef', $pin => 'false', $architecture => 'undef' )