class schroot {
+ $mirror = lookup('apt::sources::debian::location', {'strategy' => 'first'})
+
package { 'schroot':
ensure => installed,
tag => extra_repo,
require => Package['schroot'],
}
file { '/etc/schroot/dsa/default-mirror':
- content => template('schroot/default-mirror.erb'),
+ content => @("EOT"),
+ $mirror
+ | EOT
}
file { '/etc/schroot/dsa/config':
source => 'puppet:///modules/schroot/schroot-dsa/config',
+++ /dev/null
-<%=
-ninfo = scope.lookupvar('site::nodeinfo')
-if ninfo['hoster'].has_key?('mirror-debian') then
- ninfo['hoster']['mirror-debian']
-else
- 'https://deb.debian.org/debian'
-end
-%>