mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add method to verifyu that the environment pis suitible
This commit is contained in:
parent
565a2b4a21
commit
69b09a3f1b
1 changed files with 9 additions and 0 deletions
|
@ -41,10 +41,19 @@ class Master(object):
|
|||
|
||||
return cli
|
||||
|
||||
def _verify_env(self):
|
||||
'''
|
||||
Verify that the named direcotries are in place and that the environment
|
||||
can shake the salt
|
||||
'''
|
||||
if not os.path.isdir(self.opts['cachedir']):
|
||||
os.makedirs(self.opts['cachedir'])
|
||||
|
||||
def start(self):
|
||||
'''
|
||||
Run the sequence to start a salt master server
|
||||
'''
|
||||
self._verify_env()
|
||||
master = salt.master.Master(self.opts)
|
||||
master.start()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue