Commit Graph

45812 Commits

Author SHA1 Message Date
Joseph Hall
115c2068b0 Allow writing decoded data to file 2015-01-29 10:07:38 -07:00
Mathieu Le Marec - Pasquet
8cbeeff3df Lint 2015-01-29 17:40:51 +01:00
Thomas Jackson
f2b3c1657e Lazily load functions, since lots of clients don't even execute runners 2015-01-29 07:44:10 -08:00
Joseph Hall
03deef181b Merge pull request #20168 from Trax-air/fix-volumes-azure
Fix volumes azure
2015-01-29 07:45:43 -07:00
Flavian
920c1f6eb2 Replace " by ' 2015-01-29 15:23:14 +01:00
Flavian
fc1053e7ee Raises a more meaningful exception 2015-01-29 14:41:09 +01:00
Flavian
cef090cc6c Added _wait_for_async for asynchronous operations 2015-01-29 14:28:22 +01:00
Jayesh Kariya
0b1bade648 resolved the error 2015-01-29 16:00:21 +05:30
Mathieu Le Marec - Pasquet
8a99dc4af5 Add a compat layer on zc.buildout state.
This fixes #20184
2015-01-29 11:11:32 +01:00
Flavian
f5fb1f758e Fixing pylint errors 2015-01-29 10:36:29 +01:00
Jayesh Kariya
8cedb4b71d adding htpasswd unit test case 2015-01-29 14:49:32 +05:30
Jayesh Kariya
2ab996d135 adding hipchat test case 2015-01-29 14:25:25 +05:30
Jayesh Kariya
acf1f5ffc6 adding guestfs unit test case 2015-01-29 14:18:38 +05:30
Thomas Jackson
c89262c758 Lazily load functions, since lots of clients don't even execute runners 2015-01-28 20:20:15 -08:00
Russell Ballestrini
eaf87e63ec modified: salt/modules/hg.py 2015-01-28 23:14:30 -05:00
Cimarron Mittelsteadt
acaafda038 BUG: Removed extra quotes in hg.clone (not needed as cmd is already split as list) which was causing hg to abort on non-local repos like "ssh://...." 2015-01-28 23:06:39 -05:00
Russell Ballestrini
3763e056f2 Added hg identity argument to state and module
We now support supplying a private SSH key path for authentication.

      modified:   salt/modules/hg.py
      modified:   salt/states/hg.py
2015-01-28 22:57:50 -05:00
Joseph Hall
f5e8b4a10e Don't default CA bundle updates to a non-standard location 2015-01-28 20:09:13 -07:00
Thomas Jackson
dd045dfc9f Massive speedup to saltnado
This mixin was creating 3 localclients and 1 runner client per request-- which takes ~6s. Now we build the set of clients once per process
2015-01-28 19:00:35 -08:00
Thomas Jackson
4285d10d97 Fixup some merge conflicts from the backport 2015-01-28 18:43:45 -08:00
Thomas Jackson
1101f70715 Lazily load masterminion and keep it around. 2015-01-28 18:43:45 -08:00
Thomas Jackson
3d1ae49d09 Pass opts not an ImmutableDict of opts 2015-01-28 18:43:45 -08:00
Thomas Jackson
dad5b11600 Fix typo from 37619f0e 2015-01-28 18:43:45 -08:00
Thomas Jackson
69d4fac58b Migrate docs runner to __jid_event__ 2015-01-28 18:43:45 -08:00
Thomas Jackson
8171574646 Already prints out the output if run in sync mode, and async already has this in the ret event 2015-01-28 18:43:44 -08:00
Thomas Jackson
852fbfdbe2 Misc style cleanup 2015-01-28 18:43:44 -08:00
Mathieu Le Marec - Pasquet
42196ca827 Rework a bit the runner completion log 2015-01-28 18:43:44 -08:00
Mathieu Le Marec - Pasquet
3040255242 Removing useless cruft 2015-01-28 18:43:44 -08:00
Mathieu Le Marec - Pasquet
1b09aa3e58 runner: unclutter the output from mminion loading 2015-01-28 18:43:44 -08:00
Mathieu Le Marec - Pasquet
65093635f3 runner: Fix job store 2015-01-28 18:43:44 -08:00
Mathieu Le Marec - Pasquet
c5354cdca7 runner return: also add tgt to the payload 2015-01-28 18:43:44 -08:00
Mathieu Le Marec - Pasquet
0d6691aa1e runner/master Store jobs in cache, & factorization 2015-01-28 18:43:44 -08:00
Mathieu Le Marec - Pasquet
47621192cd runner: Print out correctly jid, both in sync/async 2015-01-28 18:43:44 -08:00
Thomas Jackson
f12c7b50b7 Keep the stamp 2015-01-28 18:43:44 -08:00
Thomas Jackson
39b1121380 Conditionally pop _stamp 2015-01-28 18:43:44 -08:00
Thomas Jackson
1afafd1897 Pylint cleanup 2015-01-28 18:43:44 -08:00
Thomas Jackson
53da803005 Nicer error handling for runner execution 2015-01-28 18:43:44 -08:00
Thomas Jackson
df3e6ab90f Remove unused code
Conflicts:

	salt/client/mixins.py
2015-01-28 18:43:44 -08:00
Thomas Jackson
5a8563e347 Rework the runner CLI to not use threads
No reason to go through all that work and introduce debugging issues. This way we can still fire events using __jid_event__ but if you just "print" it will do so without trying to monkey patch print
2015-01-28 18:43:44 -08:00
Thomas Jackson
235b8f4b07 Pylint cleanup 2015-01-28 18:43:44 -08:00
Thomas Jackson
a6e1267043 Remove unused import 2015-01-28 18:43:44 -08:00
Thomas Jackson
0409bf4b81 Inject globals into *all* runners' global namespace
Fix for #19707
Similar fix to #19712, just doing it once per mod.
2015-01-28 18:43:44 -08:00
Thomas Jackson
f25505f0dd Make non-async runner executions happen in a thread instead of a daemonized process.
This means we are backwards compatible with builtin print (yay!) and that you can control-c out of the execution (since it will kill the thread too).

Conflicts:

	salt/client/mixins.py
2015-01-28 18:43:44 -08:00
Thomas Jackson
12de6b5dfb Add missing import 2015-01-28 18:43:44 -08:00
Thomas Jackson
8b4f4346e9 Fix typo
Conflicts:

	salt/utils/event.py
2015-01-28 18:43:44 -08:00
Thomas Jackson
7c537cd9ec Workaround for race condition in SaltEvent() creation and the zmq socket actually connecting
Conflicts:

	salt/utils/event.py
2015-01-28 18:43:44 -08:00
Thomas Jackson
7b1bef8cb7 Cleanup, we don't always need an "event" object, so lets not always create one 2015-01-28 18:43:44 -08:00
Thomas Jackson
2cd42e3cad For some reason having the event init in the shared subclass causes problems. 2015-01-28 18:43:44 -08:00
Thomas Jackson
ca826c2c30 Revert function calls
Apparently the wheel API varies quite a bit from the runner API, we'll have to clean that up in the future
2015-01-28 18:43:43 -08:00
Thomas Jackson
3e7caa3fa7 Don't spin waiting for runner return, just use get_event (it has a poller)
Conflicts:
	salt/runner.py
2015-01-28 18:43:43 -08:00