Skip to content

Instantly share code, notes, and snippets.

@cleonte
cleonte / solo.py_dff
Created October 27, 2011 04:31
solo.py patch for rhel6
diff --git a/littlechef/solo.py b/littlechef/solo.py
index 977231b..fc21d50 100644
--- a/littlechef/solo.py
+++ b/littlechef/solo.py
@@ -14,6 +14,7 @@
#
"""Chef Solo deployment"""
import os
+import re
@cleonte
cleonte / solo.py
Created October 6, 2011 18:42
solo.py
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:
@cleonte
cleonte / run.pp
Created April 22, 2011 18:12
puppet module run
node my_server {
include users::dbusers
}
run with puppet apply --modulepath=puppeet-modules.git run.pp