From 58109d0164c5b2bc3d60b7f27d46039120bee11d Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Tue, 25 Nov 2008 21:29:44 -0500 Subject: Read settings from ~/.puppethost, if available --- puppethost.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- cgit