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')
true => absent,
}
- if $_update['always'] {
+ if $_update['frequency'] == 'always' {
Exec <| title=='apt_update' |> {
refreshonly => false,
}
notify => Exec['apt_update'],
}
- # Need anchor to provide containment for dependencies.
- anchor { 'apt::update':
- require => Class['apt::update'],
- }
+ contain 'apt::update'
# manage sources if present
if $sources {