문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top