+++ /dev/null
-Package: schroot
-Pin: release o=buildd.debian.org
-Pin-Priority: 500
-
-Package: schroot-common
-Pin: release o=buildd.debian.org
-Pin-Priority: 500
}
file { '/etc/apt/preferences.d/buildd':
+ ensure => absent,
+ }
+ file { '/etc/apt/preferences.d/buildd.debian.org':
source => "puppet:///modules/buildd/apt-preferences",
+ content => template('buildd/etc/apt/preferences.d/buildd.debian.org'),
before => File["/etc/apt/sources.list.d/buildd.list"],
;
}
--- /dev/null
+<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0] == 'armhf' -%>
+Package: schroot
+Pin: release o=buildd.debian.org
+Pin-Priority: 700
+
+Package: schroot-common
+Pin: release o=buildd.debian.org
+Pin-Priority: 700
+<% else -%>
+Package: schroot
+Pin: release o=buildd.debian.org
+Pin-Priority: 500
+
+Package: schroot-common
+Pin: release o=buildd.debian.org
+Pin-Priority: 500
+<% end %>