saltstack/salt — Issue #356: Salt should have a 'repo' state
Author: whiteinge
Created: 2011-12-13 17:28:55+00:00
State: open

It would be nice to have a 'repo' state that would ensure that a rpm/apt/ppa repository is installed/available before installing a package. This would require corresponding modules to do the platform-specific grunt work and should be flexible enough to handle the variety of methods of installing repos across platforms.

PPA's:
add-apt-repository ppa:foo

RPM's:
rpm -Uvh http://someurlto/myrepo.rpm
(or perhaps use wget first as rpm doesn't handle redirects, iirc)

As well as dropping a text file in
/etc/apt/sources.list.d/
/etc/yum.repos.d/

And what about the use-case of enabling universe/non-free?