+##2014-06-04 - Release 1.5.0
+###Summary
+
+This release adds support for Ubuntu 14.04. It also includes many new features
+and important bugfixes. One huge change is that apt::key was replaced with
+apt_key, which allows you to use puppet resource apt_key to inventory keys on
+your system.
+
+Special thanks to daenney, our intrepid unofficial apt maintainer!
+
+####Features
+- Add support for Ubuntu Trusty!
+- Add apt::hold define
+- Generate valid *.pref files in apt::pin
+- Made pin_priority configurable for apt::backports
+- Add apt_key type and provider
+- Rename "${apt_conf_d}/proxy" to "${apt_conf_d}/01proxy"
+- apt::key rewritten to use apt_key type
+- Add support for update_tries to apt::update
+
+####Bugfixes
+- Typo fixes
+- Fix unattended upgrades
+- Removed bogus line when using purge_preferences
+- Fix apt::force to upgrade allow packages to be upgraded to the pacakge from the specified release
+
##2014-03-04 - Supported Release 1.4.2
###Summary
name 'puppetlabs-apt'
-version '1.4.2'
+version '1.5.0'
source 'https://github.com/puppetlabs/puppetlabs-apt'
author 'Evolving Web / Puppet Labs'
license 'Apache License 2.0'
owner => root,
group => root,
}
-
+
file { 'old-proxy-file':
ensure => absent,
path => "${apt_conf_d}/proxy",
}
if $::operatingsystem != 'Ubuntu' {
- fail("apt::ppa is currently supported on Ubuntu only.")
+ fail('apt::ppa is currently supported on Ubuntu only.')
}
$filename_without_slashes = regsubst($name, '/', '-', 'G')
class apt::unattended_upgrades (
$origins = $::apt::params::origins,
$blacklist = [],
- $update = "1",
- $download = "1",
- $upgrade = "1",
- $autoclean = "7",
+ $update = '1',
+ $download = '1',
+ $upgrade = '1',
+ $autoclean = '7',
$auto_fix = true,
$minimal_steps = false,
$install_on_shutdown = false,
- $mail_to = "NONE",
+ $mail_to = 'NONE',
$mail_only_on_error = false,
$remove_unused = true,
$auto_reboot = false,
- $dl_limit = "NONE",
- $enable = "1",
- $backup_interval = "0",
- $backup_level = "3",
- $max_age = "0",
- $min_age = "0",
- $max_size = "0",
- $download_delta = "0",
- $verbose = "0",
+ $dl_limit = 'NONE',
+ $enable = '1',
+ $backup_interval = '0',
+ $backup_level = '3',
+ $max_age = '0',
+ $min_age = '0',
+ $max_size = '0',
+ $download_delta = '0',
+ $verbose = '0',
) inherits ::apt::params {
validate_bool(
{
"name": "puppetlabs-apt",
- "version": "1.4.1",
+ "version": "1.5.0",
"source": "https://github.com/puppetlabs/puppetlabs-apt",
"author": "Puppet Labs",
"license": "Apache-2.0",
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"10.04",
- "12.04"
+ "12.04",
+ "14.04"
]
}
],
"requirements": [
- { "name": "pe", "version_requirement": "3.2.x" },
+ { "name": "pe", "version_requirement": ">= 3.2.0 < 3.4.0" },
{ "name": "puppet", "version_requirement": "3.x" }
],
"dependencies": []
it { should contain_file('puppetlabs.list').with_content(/^deb http:\/\/apt.puppetlabs.com precise main$/) }
it { should contain_file('puppetlabs.list').with_content(/^deb-src http:\/\/apt.puppetlabs.com precise main$/) }
end
+
+ context 'with unsupported osfamily' do
+ let :facts do
+ { :osfamily => 'Darwin', }
+ end
+
+ it do
+ expect {
+ should compile
+ }.to raise_error(Puppet::Error, /This module only works on Debian or derivatives like Ubuntu/)
+ end
+ end
end