mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Tie off some minor additions here
This commit is contained in:
parent
c79129dbc2
commit
3156d5a2b2
@ -6,13 +6,25 @@ import multiprocessing
|
||||
|
||||
# Import salt libs
|
||||
import salt.ssh.shell
|
||||
import salt.roster
|
||||
|
||||
class SSH(object):
|
||||
'''
|
||||
Create an ssh execution system
|
||||
'''
|
||||
def __init__(self, opts):
|
||||
def __init__(self, opts, tgt, expr_form='glob'):
|
||||
self.opts = opts
|
||||
self.roster = salt.roster.Roster(opts)
|
||||
self.targets = self.roster.targets(tgt, expr_form)
|
||||
|
||||
def run(self):
|
||||
'''
|
||||
Execute the desired routine on the specified systems
|
||||
'''
|
||||
# TODO, this is just the code to test the chain, this is where the
|
||||
# parallel stuff needs to go once the chain is proven valid
|
||||
|
||||
|
||||
|
||||
|
||||
class Single(multiprocessing.Process):
|
||||
|
Loading…
Reference in New Issue
Block a user