Module undine_apt
In: /vagrant/modules/undine_apt/manifests/init.pp
/vagrant/modules/undine_apt/manifests/ppa.pp
/vagrant/modules/undine_apt/manifests/init.pp
/vagrant/modules/undine_apt/manifests/ppa.pp

Defines

ppa   ppa  

Classes and Modules

Class undine_apt::undine_apt

Defines

ppa( $ppa_name, $source_list_d_filename => 'undef', $source_list_d_content => 'undef', $source_list_d_source => 'undef', $ppa_user )

Define: ppa

The ppa resource represents a single signed Personal Package Archive (PPA) to be managed via apt-add-repository. Optionally, users may choose to manage the associated source list files stored in source.list.d by supplying the filename and source content.

Parameters

ppa_user
The name of the user from which the PPA is being retrieved.
ppa_name
The name of the PPA to retrieve from the user defined in ppa_user.
source_list_d_content
Optional. The raw content to use for the source.list.d file, as a string. Mutually exclusive with source_list_d_source.
source_list_d_source
A source file, which will be copied into place on the local system within source.list.d, with the same usage as the file resource. Mutually exclusive with source_list_d_content.
source_list_d_filename
Optional. The filename of the associated source.list.d file to manage. Required when source_list_d_content or source_list_d_source is set.

Examples

To use packages from a PPA, first declare the PPA, then require the PPA resource from the package resource you want to declare.

  undine_apt::ppa { 'git-core/git':
    ppa_user => 'git-core',
    ppa_name => 'git',
    source_list_d_filename => 'git-core-ppa-lucid.list'
    source_list_d_source => 'puppet:///modules/my_git_module/git-core-ppa-lucid.list',
  }

  package { 'git':
    require Undine_apt::Ppa['git-core/git'],
    ensure => installed,
  }
ppa( $ppa_name, $source_list_d_filename => 'undef', $source_list_d_content => 'undef', $source_list_d_source => 'undef', $ppa_user )

Define: ppa

The ppa resource represents a single signed Personal Package Archive (PPA) to be managed via apt-add-repository. Optionally, users may choose to manage the associated source list files stored in source.list.d by supplying the filename and source content.

Parameters

ppa_user
The name of the user from which the PPA is being retrieved.
ppa_name
The name of the PPA to retrieve from the user defined in ppa_user.
source_list_d_content
Optional. The raw content to use for the source.list.d file, as a string. Mutually exclusive with source_list_d_source.
source_list_d_source
A source file, which will be copied into place on the local system within source.list.d, with the same usage as the file resource. Mutually exclusive with source_list_d_content.
source_list_d_filename
Optional. The filename of the associated source.list.d file to manage. Required when source_list_d_content or source_list_d_source is set.

Examples

To use packages from a PPA, first declare the PPA, then require the PPA resource from the package resource you want to declare.

  undine_apt::ppa { 'git-core/git':
    ppa_user => 'git-core',
    ppa_name => 'git',
    source_list_d_filename => 'git-core-ppa-lucid.list'
    source_list_d_source => 'puppet:///modules/my_git_module/git-core-ppa-lucid.list',
  }

  package { 'git':
    require Undine_apt::Ppa['git-core/git'],
    ensure => installed,
  }

[Validate]