mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +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,
|
'sudo': sudo,
|
||||||
'tty': tty,
|
'tty': tty,
|
||||||
'mods': self.mods}
|
'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'),
|
'root_dir': os.path.join(self.thin_dir, 'running_data'),
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'sock_dir': '/',
|
'sock_dir': '/',
|
||||||
}, width=1000).strip()
|
})
|
||||||
|
self.minion_config = yaml.dump(minion_opts, width=1000).strip()
|
||||||
self.target = kwargs
|
self.target = kwargs
|
||||||
self.target.update(args)
|
self.target.update(args)
|
||||||
self.serial = salt.payload.Serial(opts)
|
self.serial = salt.payload.Serial(opts)
|
||||||
|
Loading…
Reference in New Issue
Block a user