instantiating the class with those variables instead. For example, if you
had the following in your manifests:
- $apt_debian_url = "http://localhost:9999/debian/"
+ $apt_debian_url = 'http://localhost:9999/debian/'
$apt_use_next_release = true
include apt
you will need to remove the variables, and the include and instead do
the following:
- class { 'apt': debian_url => "http://localhost:9999/debian/", use_next_release => true }
+ class { 'apt': debian_url => 'http://localhost:9999/debian/', use_next_release => true }
previously, you could manually set $lsbdistcodename which would enable forced
upgrades, but because this is a top-level facter variable, and newer puppet
including this class before, you will need to move to instantiating the
class instead. For example, if you had the following in your manifests:
- $apticron_email = "foo@example.com"
- $apticron_notifynew = "1"
+ $apticron_email = 'foo@example.com'
+ $apticron_notifynew = '1'
... any $apticron_* variables
include apticron
you will need to remove the variables, and the include and instead do the
following:
- class { 'apt::apticron': email => "foo@example.com", notifynew => '1' }
+ class { 'apt::apticron': email => 'foo@example.com', notifynew => '1' }
* the apt::listchanges class has been moved to a paramterized class. if you
were including this class before, after passing some variables, you will need
to move to instantiating the class with those variables instead. For example,
if you had the following in your manifests:
- $apt_listchanges_email = "foo@example.com"
+ $apt_listchanges_email = 'foo@example.com'
... any $apt_listchanges_* variables
include apt::listchanges
you will need to remove the variables, and the include and instead do the
following:
- class { 'apt::listchanges': email => "foo@example.com" }
+ class { 'apt::listchanges': email => 'foo@example.com' }
* the apt::proxy_client class has been moved to a paramterized class. if you
were including this class before, after passing some variables, you will need
For example, setting the following variable before including this class will
pull in the templates/site_apt/sources.list file:
- $custom_sources_list = template("site_apt/sources.list")
+ $custom_sources_list = template('site_apt/sources.list')
$custom_key_dir
---------------
Example usage:
- class { 'apt': use_next_release => true, debian_url => 'http://localhost:9999/debian/" }
+ class { 'apt': use_next_release => true, debian_url => 'http://localhost:9999/debian/' }
Class parameters:
Example usage:
- class { 'apt::apticron': email => "foo@example.com", notifynew => '1' }
+ class { 'apt::apticron': email => 'foo@example.com', notifynew => '1' }
apt::cron::download
-------------------
This class, when instantiated, installs apt-listchanges and configures it using
the following parameterized variables, which can be changed:
- version = "present"
+ version = 'present'
config = "apt/${::operatingsystem}/listchanges_${::lsbrelease}.erb"
frontend = 'pager'
email = 'root'
which = 'both'
Example usage:
- class { 'apt::listchanges': email => "foo@example.com" }
+ class { 'apt::listchanges': email => 'foo@example.com' }
apt::proxy_client
-----------------
apt::preferences_snippet {
'irssi-plugin-otr':
- release => 'lenny-backports',
+ release => 'squeeze-backports',
priority => 999;
}
Example:
- apt::sources_list { "company_internals.list":
- source => ["puppet:///modules/site_apt/${::fqdn}/company_internals.list",
- "puppet:///modules/site_apt/company_internals.list"],
+ apt::sources_list { 'company_internals.list':
+ source => [ "puppet:///modules/site_apt/${::fqdn}/company_internals.list",
+ 'puppet:///modules/site_apt/company_internals.list' ],
}
apt::upgrade_package
(if it is installed), it also upgrades the syslog-ng and perl-modules packages
to their latest (also, only if they are installed):
-upgrade_package { "perl":
+upgrade_package { 'perl':
version => '5.8.8-7etch1';
- "syslog-ng":
+ 'syslog-ng':
version => latest;
- "perl-modules":
+ 'perl-modules':
}
Resources