Skip to content

Commit ffe1f0b

Browse files
committed
Add logic for deb822 sources
1 parent a08122e commit ffe1f0b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

manifests/source.pp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,18 @@
284284
}
285285
}
286286
'deb822': {
287-
if ($pin) {
287+
if $pin {
288288
fail('apt::source::pin parameter is not supported with deb822 format')
289289
}
290+
if !$uris {
291+
fail('You must specify a list of URIs for the apt::source resource')
292+
}
293+
if !$suites {
294+
fail('You must specify a list of suites for the apt::source resource')
295+
}
296+
if !$components {
297+
fail('You must specify a list of components for the apt::source resource')
298+
}
290299
$_file_suffix = 'sources'
291300
case $ensure {
292301
'present': {

0 commit comments

Comments
 (0)