Created
October 6, 2011 18:42
-
-
Save cleonte/1268251 to your computer and use it in GitHub Desktop.
solo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ef _add_rpm_repos(): | |
"""Add EPEL and ELFF""" | |
with show('running'): | |
# Install the EPEL Yum Repository. | |
with settings(hide('warnings', 'running'), warn_only=True): | |
repo_url = "http://download.fedora.redhat.com" | |
repo_path = "/pub/epel/5/i386/epel-release-5-4.noarch.rpm" | |
output = sudo('rpm -Uvh {0}{1}'.format(repo_url, repo_path)) | |
installed = "package epel-release-5-4.noarch is already installed" | |
if output.failed and installed not in output: | |
abort(output) | |
# Install the ELFF Yum Repository. | |
#with settings(hide('warnings', 'running'), warn_only=True): | |
# repo_url = "http://download.elff.bravenet.com" | |
# repo_path = "/5/i386/elff-release-5-3.noarch.rpm" | |
# output = sudo('rpm -Uvh {0}{1}'.format(repo_url, repo_path)) | |
# installed = "package elff-release-5-3.noarch is already installed" | |
# if output.failed and installed not in output: | |
# abort(output) | |
# Install the ELFF Yum Repository. | |
with settings(hide('warnings', 'running'), warn_only=True): | |
repo_url = "http://rbel.co/rbel5" | |
repo_path = "" | |
output = sudo('rpm -Uvh {0}{1}'.format(repo_url, repo_path)) | |
installed = "package rbel5-release-1.0-2.el5.noarch is already installed" | |
if output.failed and installed not in output: | |
abort(output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment