'ubuntu' => 'main universe multiverse restricted',
}
+ apt::pin { 'backports':
+ before => Apt::Source['backports'],
+ release => "${release_real}-backports",
+ priority => $pin_priority,
+ }
+
apt::source { 'backports':
location => $location,
release => "${release_real}-backports",
repos => $repos,
key => $key,
key_server => 'pgp.mit.edu',
- pin => $pin_priority,
}
}
'repos' => 'main universe multiverse restricted',
'key' => '437D05B5',
'key_server' => 'pgp.mit.edu',
- 'pin' => 500,
+ })
+ }
+
+ it { should contain_apt__pin('backports').with({
+ 'release' => 'karmic-backports',
+ 'priority' => 500,
})
}
end
'repos' => 'main universe multiverse restricted',
'key' => '437D05B5',
'key_server' => 'pgp.mit.edu',
- 'pin' => 200,
+ })
+ }
+
+ it { should contain_apt__pin('backports').with({
+ 'release' => 'karmic-backports',
+ 'priority' => 200,
})
}
end
'repos' => 'main contrib non-free',
'key' => '46925553',
'key_server' => 'pgp.mit.edu',
- 'pin' => 200,
+ })
+ }
+
+ it { should contain_apt__pin('backports').with({
+ 'release' => 'squeeze-backports',
+ 'priority' => 200,
})
}
end
'repos' => 'main contrib non-free',
'key' => '46925553',
'key_server' => 'pgp.mit.edu',
- 'pin' => 200,
+ })
+ }
+
+ it { should contain_apt__pin('backports').with({
+ 'release' => 'wheezy-backports',
+ 'priority' => 200,
})
}
end
'repos' => 'main universe multiverse restricted',
'key' => '437D05B5',
'key_server' => 'pgp.mit.edu',
- 'pin' => 200,
+ })
+ }
+
+ it { should contain_apt__pin('backports').with({
+ 'release' => 'trusty-backports',
+ 'priority' => 200,
})
}
end
'repos' => 'main contrib non-free',
'key' => '46925553',
'key_server' => 'pgp.mit.edu',
- 'pin' => 200,
+ })
+ }
+
+ it { should contain_apt__pin('backports').with({
+ 'release' => 'squeeze-backports',
+ 'priority' => 200,
})
}
end