Add extension modules data to the config system

This commit is contained in:
Thomas S Hatch 2012-01-04 20:20:38 -07:00
parent 610b4ec934
commit 9e4d7960ce
2 changed files with 7 additions and 2 deletions

View File

@ -150,8 +150,10 @@ class Minion(object):
'''
Execute this method to start up a minion.
'''
verify_env([self.opts['pki_dir'], self.opts['cachedir'],
os.path.dirname(self.opts['log_file']),
verify_env([self.opts['pki_dir'],
self.opts['cachedir'],
self.opts['extension_modules'],
os.path.dirname(self.opts['log_file']),
])
import salt.log
salt.log.setup_logfile_logger(

View File

@ -106,6 +106,9 @@ def minion_config(path):
# Prepend root_dir to other paths
prepend_root_dir(opts, ['pki_dir', 'cachedir', 'log_file'])
# set up the extension_modules location from the cachedir
opts['extension_modules'] = os.path.join(opts['cachedir'], 'extmods')
return opts