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
Fail early when its not debian or ubuntu ( or debian like distro )
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
init.pp
diff --git
a/manifests/init.pp
b/manifests/init.pp
index 12db61a6df3b1c9080584436a02cc490e86e82a7..ad3f5e06e03cb4a38ff5f5e32e4e379c8df373d1 100644
(file)
--- a/
manifests/init.pp
+++ b/
manifests/init.pp
@@
-34,6
+34,10
@@
class apt(
$update_timeout = undef
) {
+ if $::osfamily != 'Debian' {
+ fail('This module only works on Debian or derivatives like Ubuntu')
+ }
+
include apt::params
include apt::update