mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Inject local minion config into shim if available
This commit is contained in:
parent
83ef7cb114
commit
b751a7281c
@ -561,12 +561,16 @@ class Single(object):
|
||||
'sudo': sudo,
|
||||
'tty': tty,
|
||||
'mods': self.mods}
|
||||
self.minion_config = yaml.dump(
|
||||
{
|
||||
minion_config_file = os.path.join(opts.get('config_dir', '/etc/salt'),
|
||||
'minion')
|
||||
minion_opts = salt.config.load_config(minion_config_file,
|
||||
'SALT_MINION_CONFIG')
|
||||
minion_opts.update({
|
||||
'root_dir': os.path.join(self.thin_dir, 'running_data'),
|
||||
'id': self.id,
|
||||
'sock_dir': '/',
|
||||
}, width=1000).strip()
|
||||
})
|
||||
self.minion_config = yaml.dump(minion_opts, width=1000).strip()
|
||||
self.target = kwargs
|
||||
self.target.update(args)
|
||||
self.serial = salt.payload.Serial(opts)
|
||||
|
Loading…
Reference in New Issue
Block a user