mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Add extension modules data to the config system
This commit is contained in:
parent
610b4ec934
commit
9e4d7960ce
@ -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(
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user