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
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 | |
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: |
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
node my_server { | |
include users::dbusers | |
} | |
run with puppet apply --modulepath=puppeet-modules.git run.pp |