Track the executing user and do some best effort work to figure out who
it is based on environment variables. Pass the user in the payload
and allow for logging of summary information about the job the user
ran, but also allow for a raw dump of the user's target, arguments,
etc.
This aids in auditability of a user on a system trying to figure out
what made a change and when.
It looks like when the following commit[1] was made it broke the mysql
module, and I haven't noticed until now some how.
My guess is that __opts__ used to look like
__opts__['mysql']['default_file'] where as it now looks like
__opts__['mysql.default_file']
[1] = b7e7cc3cb1
I spent the past 30 min trying to debug a problem where when a command
was published to the minion it was arriving as a string instead of a
tuple. The cmd.run module was receiving:
{
'arg': 'mycommand myarg1 myarg2'
'fun': 'cmd.run',
'jid': '20120226160155389058',
'ret': '',
'tgt': 'mytarget'
}
This was causing the following exception:
TypeError: run() takes at most 3 arguments (20 given)
I traced this down to the publish module checking for an instance of
'str' and splitting on ','.
In my instance the problem was being caused because Django likes to use
Unicode strings everywhere and the isintance was returning False.
I've replaced all instances of str with basestring in all the isintance
checks.
Squashed commit of the following:
commit 6cf776ebbb7d742934a0ab2bd823fd360b8868ce
Author: David Boucha <boucha@gmail.com>
Date: Sat Feb 25 20:30:36 2012 -0700
Basic Windows Registry management completed
commit f18a2e99396bcc0154fc0a20be8800f166f5acb5
Author: David Boucha <boucha@gmail.com>
Date: Sat Feb 25 17:34:54 2012 -0700
Add reg.read_key
commit e8cecf96c31f9c2a545614a5a901c26125197887
Author: David Boucha <boucha@gmail.com>
Date: Sat Feb 25 15:25:09 2012 -0700
Add reg.py for managing Registry settings in Windows
Since RTD build the latest docs as the default available docs having the
installation instructions along with the rest of the docs is really the
best place for them to live.
Fixes#762Fixes#763