summaryrefslogtreecommitdiff
path: root/manifests/sources_list.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/sources_list.pp')
-rw-r--r--manifests/sources_list.pp13
1 files changed, 7 insertions, 6 deletions
diff --git a/manifests/sources_list.pp b/manifests/sources_list.pp
index 7565bce..35a7643 100644
--- a/manifests/sources_list.pp
+++ b/manifests/sources_list.pp
@@ -1,15 +1,16 @@
# Configure an apt source
+
define apt::sources_list (
- $ensure = 'present',
- $source = '',
- $content = undef
+ $ensure = 'present',
+ $source = undef,
+ $content = undef,
) {
if $ensure == 'present' {
- if $source == '' and $content == undef {
+ if $source == undef and $content == undef {
fail("One of \$source or \$content must be specified for apt_sources_snippet ${name}")
}
- if $source != '' and $content != undef {
+ if $source != undef and $content != undef {
fail("Only one of \$source or \$content must specified for apt_sources_snippet ${name}")
}
}
@@ -26,7 +27,7 @@ define apt::sources_list (
mode => '0644',
owner => 'root',
group => 0,
- notify => Exec['apt_updated'],
+ notify => Exec['update_apt'],
}
if $source {