Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Preserve backwards compatibility
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
init.pp
diff --git
a/manifests/init.pp
b/manifests/init.pp
index 53e25dca0ec26363a300aca2ef9bf9d10467cded..00025893689835f8b1eef17f7202d65327579fda 100644
(file)
--- a/
manifests/init.pp
+++ b/
manifests/init.pp
@@
-33,10
+33,6
@@
class apt(
validate_bool($purge_sources_list, $purge_sources_list_d)
validate_bool($purge_sources_list, $purge_sources_list_d)
- if ! defined(Package['python-software-properties']) {
- package { 'python-software-properties': }
- }
-
$sources_list_content = $purge_sources_list ? {
false => undef,
true => "# Repos managed by puppet.\n",
$sources_list_content = $purge_sources_list ? {
false => undef,
true => "# Repos managed by puppet.\n",
@@
-98,4
+94,9
@@
class apt(
notify => Exec['apt_update'],
}
}
notify => Exec['apt_update'],
}
}
+
+ # Need anchor to provide containment for dependencies.
+ anchor { "apt::update":
+ require => Class['apt::update'],
+ }
}
}