diff options
author | Todd Zullinger <tmz@pobox.com> | 2008-11-25 21:29:44 -0500 |
---|---|---|
committer | Todd Zullinger <tmz@pobox.com> | 2008-11-25 21:29:44 -0500 |
commit | 58109d0164c5b2bc3d60b7f27d46039120bee11d (patch) | |
tree | 9df70fbf0c21ae13fad2933ac803498e36b19c26 /puppethost.py | |
parent | 78b3050ea148aa865cf11584f3d71d80120aeb40 (diff) | |
download | puppet-host-package-58109d0164c5b2bc3d60b7f27d46039120bee11d.tar.gz puppet-host-package-58109d0164c5b2bc3d60b7f27d46039120bee11d.tar.xz puppet-host-package-58109d0164c5b2bc3d60b7f27d46039120bee11d.zip |
Read settings from ~/.puppethost, if available
Diffstat (limited to 'puppethost.py')
-rwxr-xr-x | puppethost.py | 4 |
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): |