Skip to content
apt configuration puppet module
Find file
Pull request Compare This branch is 58 commits ahead of ctrlaltdel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
files
manifests
templates
README

README

= apt puppet module =

Manages apt configuration under Debian or Ubuntu.

== Classes ==

  * apt
  * apt::backports
  * apt::clean-cache
  * apt::default_sources_list
  * apt::debsrc_sources_list
  * apt::unattended-upgrade
  * apt::unattended-upgrade::automatic

=== apt ===

Clean apt preferences and source list, distribute a 10periodic preference,
ensures package debian-archive-keyring is kept up-to-date, and provides an
Exec['apt-get_update'] which can be notified on relevant changes.

=== apt::backports ===

Include a backports source list configuration.

=== apt::clean-cache ===

Variables
*$apt_clean_minutes*: cronjob minutes - default uses ip_to_cron from module "common"
*$apt_clean_hours*:   cronjob hours - default to 0
*$apt_clean_mday*:    cronjob monthday - default uses ip_to_cron from module "common"

Require:
- module common (http://github.com/camptocamp/puppet-common)

=== apt::unattended-upgrade ===

Manages package unattended-upgrade.

=== apt::unattended-upgrade::automatic ===

Manages package unattended-upgrade and configures daily update through
a 99unattended-upgrade and restricts updates of etch to oldstable and
lenny to stable through 50unattended-upgrades.

== Definitions ==

  * apt::conf
  * apt::key
  * apt::preferences
  * apt::sources_list

=== apt::conf ==

apt::conf { "99unattended-upgrade":
    ensure  => present,
    content => "APT::Periodic::Unattended-Upgrade \"1\";\n",
}

=== apt::key ===

apt::key { "A37E4CF5":
    source  => "http://dev.camptocamp.com/packages/debian/pub.key",
}

=== apt::preferences ===

apt::preferences { "name":
    ensure   => present, # default
    package  => "pkg", # defaults to name
    pin      => "release a=testing",
    priority => 350,
}

=== apt::sources_list ===

apt::sources_list { "camptocamp":
    ensure  => present,
    content => "deb http://dev.camptocamp.com/packages/ etch puppet",
}
Something went wrong with that request. Please try again.