Give clearer instructions around lsb-release

This commit is contained in:
Daniele Sluijters 2015-04-23 22:54:17 +02:00
parent 55a17ac591
commit 1318344500
3 changed files with 4 additions and 2 deletions

View file

@ -24,6 +24,8 @@ The apt module lets you use Puppet to manage Apt sources, keys, and other config
Apt (Advanced Package Tool) is a package manager available on Debian, Ubuntu, and several other operating systems. The apt module provides a series of classes, defines, types, and facts to help you automate Apt package management.
**Note**: For this module to be able to correctly auto detect which version of Debian/Ubuntu or derivative you're running you need to make sure the 'lsb-release' package is installed. We highly recommend making this part of your provisioning layer if you run many Debian or derivative systems or ensuring that you have at least Facter 2.2.0 installed which will pull in this dependency for you.
## Setup
### What apt affects

View file

@ -150,7 +150,7 @@ class apt::params {
}
}
undef: {
fail('Unable to determine lsbdistid, is lsb-release installed?')
fail('Unable to determine lsbdistid, please install lsb-release first')
}
default: {
$ppa_options = undef

View file

@ -19,7 +19,7 @@ describe 'apt::params', :type => :class do
it do
expect {
subject.call
}.to raise_error(Puppet::Error, /Unable to determine lsbdistid, is lsb-release installed/)
}.to raise_error(Puppet::Error, /Unable to determine lsbdistid, please install lsb-release first/)
end
end