Pregunta

is there a way to tell puppet to install a package from a specific repository? I'd like to do something like 'aptitude -t testing install vim' in puppet.

The reason why I want to do this is that I want to install specific packages from debian 'testing' repository, but by default only use 'stable'.

Currently I have the 'testing' repository pinned with a priority of -10, so apt won't install packages from it without me explicitly telling it to do so:

Package: *                                                                                                                                                                                             
Pin: release a=stable
Pin-Priority: 990 

Package: *
Pin: release a=testing
Pin-Priority: -10

I'm using puppet 2.6.2 on debian-based systems.

¿Fue útil?

Solución

Try the puppetlabs-apt module and use apt::force

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top