require => Package['apt-transport-https'],
}
- file { '/etc/apt/preferences.d/buildd':
+ # "bad" extension
+ file { '/etc/apt/preferences.d/buildd.debian.org':
ensure => absent,
}
file { '/etc/apt/preferences.d/buildd.debian.org':
- content => template('buildd/etc/apt/preferences.d/buildd.debian.org'),
+ content => template('buildd/etc/apt/preferences.d/buildd'),
before => File["/etc/apt/sources.list.d/buildd.debian.org.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 %>
+++ /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 %>