summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2008-11-25 21:29:44 -0500
committerTodd Zullinger <tmz@pobox.com>2008-11-25 21:29:44 -0500
commit58109d0164c5b2bc3d60b7f27d46039120bee11d (patch)
tree9df70fbf0c21ae13fad2933ac803498e36b19c26
parent78b3050ea148aa865cf11584f3d71d80120aeb40 (diff)
downloadpuppet-host-package-58109d0164c5b2bc3d60b7f27d46039120bee11d.tar.gz
puppet-host-package-58109d0164c5b2bc3d60b7f27d46039120bee11d.tar.xz
puppet-host-package-58109d0164c5b2bc3d60b7f27d46039120bee11d.zip
Read settings from ~/.puppethost, if available
-rwxr-xr-xpuppethost.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/puppethost.py b/puppethost.py
index f36d26f..bbdceba 100755
--- a/puppethost.py
+++ b/puppethost.py
@@ -31,6 +31,10 @@ if status == 0:
defaults['domain'] = domain
del status
+config = os.path.expanduser('~/.puppethost')
+if os.path.exists(config):
+ execfile(config, {}, defaults)
+
package_types = ['deb', 'rpm']
class PuppetHostError(StandardError):