Improves EPEL and RDO repo setup

This patch improves repo setup. In case of EPEL it also enables/disables
EPEL repo according to configuration. In case of RDO it's installed on
each host if the repo is installed locally.

Fixes: rhbz#974971, rhbz#990642

Change-Id: I3a1f77061439f1072a0932918384b939babcd3e0
This commit is contained in:
Martin Magr
2013-10-04 10:31:00 +02:00
parent 6418613c5d
commit b42978f1bd
9 changed files with 165 additions and 84 deletions

View File

@@ -36,17 +36,11 @@ class Controller(object):
return self.__single
def __init__(self):
# XXX: Right now this will only hold all temp dirs on each host.
# Method for temp dir creation should be implemented in this
# class, when it will start behaving like controller and not
# only like data container
self.temp_map = {}
# Resources that should be copied to each host along with the puppet
# files, on the remote host the file will be placed in
# $PACKSTACK_VAR_DIR/resources. As with temp_map, this controller
# should copy the files, for now the puppet plugin is doing it
# format {'host':[('/path/to/fileordirectory', 'filenameonremotehost'), ..]}
# $PACKSTACK_VAR_DIR/resources. This controller should copy the files,
# for now the puppet plugin is doing it format
# {'host':[('/path/to/fileordirectory', 'filenameonremotehost'), ..]}
self.resources = {}