saltstack/salt — Issue #695: forcing a single yum repo
Author: ericsnowcurrently
Created: 2012-02-14 21:17:12+00:00
State: open

Currently the pkg state allows for specifying the repo to use. However, it simply adds that repo to the list, rather than using *only* that repo. It's the same as:

yum --enablerepo ...

vs.

yum --disablerepo * --enablerepo ...

By disabling all by-default-enabled repos, the second one ensures that *only* the enabled repo is used.

If the current non-disablement isn't intentional, would it be okay to add that in? If it is intentional, could we get another option for specifying exclusivity? Thanks!