Using puppet to install debian packages from backports

1,988 views
Skip to first unread message

Sébastien B.

unread,
Sep 23, 2011, 6:06:19 PM9/23/11
to Puppet Users
Hello,

with debian, provided you added backports.debian.org to your
sources.list, you can install some fresher packages (say iceweasel)
with the command

apt-get install -t squeeze-backports iceweasel

Is there anyway to do this using puppet ?

Or maybe should I specify the required version of iceweasel. Maybe
puppet will be smart enough to notice this version is only available
from backports and install it ?

Thank you from any help,

Cheers
Sebastien

Denmat

unread,
Sep 24, 2011, 6:17:37 PM9/24/11
to puppet...@googlegroups.com
Hi,

The options available to you are:
* Try an exec that installs the package
* try pinning the resource and push that to your apt config
* try specifying version in the config

To be honest I have not done any of these myself on debian style hosts.

Cheers
Den

> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>

Gabriel Filion

unread,
Sep 25, 2011, 2:19:25 PM9/25/11
to puppet...@googlegroups.com
On 11-09-24 06:17 PM, Denmat wrote:
> Hi,
>
> The options available to you are:
> * Try an exec that installs the package
> * try pinning the resource and push that to your apt config
> * try specifying version in the config

Using the backports version in the ensure parameter works, but you have
to manually and regularly change the version tag if you want to follow
upgrades. So this solution is only viable if you need the backports
version, but also need to stay at a fixed version.

Using the pinning mechanism works well. You just have to make sure you
let only the packages you want to come from backports. If you're lucky
enough to be using Squeeze, then you can simply drop a file in
/etc/apt/preferences.d (it's unavailable before squeeze)

> On 24/09/2011, at 8:06, S�bastien B. <barth...@crans.org> wrote:
>
>> Hello,
>>
>> with debian, provided you added backports.debian.org to your
>> sources.list, you can install some fresher packages (say iceweasel)
>> with the command
>>
>> apt-get install -t squeeze-backports iceweasel
>>
>> Is there anyway to do this using puppet ?
>>
>> Or maybe should I specify the required version of iceweasel. Maybe
>> puppet will be smart enough to notice this version is only available
>> from backports and install it ?
>>
>> Thank you from any help,
>>
>> Cheers
>> Sebastien
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
>> To post to this group, send email to puppet...@googlegroups.com.
>> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>>
>

--
Gabriel Filion

Sébastien B.

unread,
Sep 25, 2011, 8:02:18 PM9/25/11
to Puppet Users
Thank to both of you for your help,

I'll try to setup apt-pinning.

Cheers
-- S Barthélémy

Peter Meier

unread,
Sep 26, 2011, 2:32:31 AM9/26/11
to puppet...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

> I'll try to setup apt-pinning.

the apt module @ https://labs.riseup.net/code/projects/shared-apt/

Can help you by setting up pinning:

https://labs.riseup.net/code/projects/shared-apt/repository/revisions/master/entry/README#L303

~pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6AHHUACgkQbwltcAfKi3+DFwCeKQB2szZ9ODbrUqZHUbjO800n
LGoAn2T125VuvPvRlK0zI4Cx2sYslUq1
=9bca
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages