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
Merge pull request #473 from mhaskel/freq_cleanup
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
init.pp
diff --git
a/manifests/init.pp
b/manifests/init.pp
index dbf03329586177846ddf5c0bdad09663eefff347..453df3171f3e0191cf4ff9018229a6297f85582e 100644
(file)
--- a/
manifests/init.pp
+++ b/
manifests/init.pp
@@
-14,9
+14,6
@@
class apt(
if $update['frequency'] {
validate_re($update['frequency'], $frequency_options)
}
if $update['frequency'] {
validate_re($update['frequency'], $frequency_options)
}
- if $update['always'] {
- validate_bool($update['always'])
- }
if $update['timeout'] {
unless is_integer($update['timeout']) {
fail('timeout value for update must be an integer')
if $update['timeout'] {
unless is_integer($update['timeout']) {
fail('timeout value for update must be an integer')
@@
-84,7
+81,7
@@
class apt(
true => absent,
}
true => absent,
}
- if $_update['
always']
{
+ if $_update['
frequency'] == 'always'
{
Exec <| title=='apt_update' |> {
refreshonly => false,
}
Exec <| title=='apt_update' |> {
refreshonly => false,
}