summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md3
-rw-r--r--README.md4
-rw-r--r--manifests/init.pp2
-rw-r--r--spec/classes/unattended_upgrades_spec.rb3
4 files changed, 8 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5c8865b..3e57e26 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased][unreleased]
## Changed
-- Tested on Puppet 4
+- Tested on Puppet 4.
+- Remove inclusion of `apt` class.
## [1.0.2] - 2015-04-22
### Changed
diff --git a/README.md b/README.md
index c266734..8c1581c 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,9 @@ The unattended\_upgrades module automates the configuration of apt package updat
### Beginning with unattended\_upgrades
-All you need to do is include the module `include unattended_upgrades`.
+All you need to do is include the apt module, `include apt`, and this module, `include unattended_upgrades` for it to work.
+
+This module relies on the [apt](https://forge.puppetlabs.com/puppetlabs/apt) module and will not work without it.
## Usage
diff --git a/manifests/init.pp b/manifests/init.pp
index 72f5d52..4829256 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -18,8 +18,6 @@ class unattended_upgrades (
$verbose = 0,
) inherits ::unattended_upgrades::params {
- include ::apt
-
validate_bool(
$install_on_shutdown,
$legacy_origin,
diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb
index 28feaa7..fa8d1b1 100644
--- a/spec/classes/unattended_upgrades_spec.rb
+++ b/spec/classes/unattended_upgrades_spec.rb
@@ -9,6 +9,9 @@ describe 'unattended_upgrades' do
:lsbistcodename => 'wheezy',
:lsbrelease => '7.0.3',
} }
+ let(:pre_condition) {
+ 'include ::apt'
+ }
context 'with defaults on Debian' do
it { should contain_package('unattended-upgrades') }