site::aptrepo { 'buildd.debian.org':
template => 'buildd/etc/apt/sources.list.d/buildd.list.erb',
key => 'puppet:///modules/buildd/buildd.debian.org.asc',
- require => Package['apt-transport-https'],
+ require => Package['apt-transport-https'],
}
file { '/etc/apt/preferences.d/buildd':
-define site::aptrepo ($key = undef, $keyid = undef, $template = undef, $config = undef, $ensure = present) {
+define site::aptrepo ($key = undef, $keyid = undef, $template = undef, $config = undef, $ensure = present, $require = []) {
case $ensure {
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,
}
}
}