-define site::aptrepo ($key = undef, $keyid = undef, $template = undef, $config = undef, $ensure = present, $require = []) {
-
+define site::aptrepo ($key = undef, $keyid = undef, $template = undef, $config = undef, $ensure = present) {
case $ensure {
present: {
ensure => $ensure,
content => template($template),
notify => Exec['apt-get update'],
- require => $require,
}
} else {
file { "/etc/apt/sources.list.d/${name}.list":
ensure => $ensure,
source => $config,
notify => Exec['apt-get update'],
- require => $require,
}
}
}