Commit Graph

58 Commits

Author SHA1 Message Date
Daniel A Wozniak
5027c7bb84
minionswarm runs on windows 2018-06-06 14:19:16 -07:00
Pedro Algarvio
61003bca0a
Take care of resource leakage on tests 2017-04-04 18:58:20 +01:00
Silvio Moioli
83c93d1268
minionswarm.py: allow random UUID 2017-03-10 12:10:21 +01:00
Silvio Moioli
573d6e9dfb minionswarm.py: add flag to delay starts 2017-03-04 14:52:18 +01:00
Mike Place
984e6de244 Merge pull request #39024 from moio/minionswarm-set-machine-id
minionswarm.py: allow random machine id
2017-01-30 09:31:15 -07:00
Mike Place
80e4aa2ea2 Merge pull request #39022 from moio/minionswarm-reuse-existing-data
minionswarm.py: allow temporary data reuse
2017-01-30 09:29:30 -07:00
Silvio Moioli
f454dbd84c minionswarm.py: use predictable random numbers 2017-01-30 16:34:01 +01:00
Silvio Moioli
f27e0e8f4e minionswarm.py: allow random machine id 2017-01-30 14:21:52 +01:00
Silvio Moioli
382cf21b5f minionswarm.py: allow re-use of temporary files 2017-01-30 13:23:45 +01:00
Silvio Moioli
b2f7d3e3cf minionswarm.py: add option to specify temp dir 2017-01-30 13:23:45 +01:00
Seth House
ca61237de7 Ensure 'data' remains a dictionary if conf file is empty or missing 2016-07-26 12:41:42 -06:00
Dmitry Kuzmenko
88e8106b00 Handle -c option in minionswarm script.
There is a '-c' option that says: pass in an alt. conf. dir.
But this option isn't used in the minionswarm. I found it very useful to
use it to specify a path to the base salt configuration that would be
updated with the minionswarm specific needs (different ports, paths
etc.) keeping other parameters like alive intervals, timeouts, mine
options and so on.
2016-03-21 16:13:43 +03:00
Thomas S Hatch
d37afd1be8 Add rand-ver option 2015-09-23 16:09:23 -06:00
Thomas S Hatch
d5c23bdf8a Allow the minion swarm to generate random minion OSES 2015-09-23 15:59:55 -06:00
Mike Place
d0eda05f4d Fix bug preventing minionswarm from working with tcp transport 2015-04-30 12:49:16 -06:00
Pedro Algarvio
56840f9a08 Py3 compatibility fixes 2015-01-30 22:25:08 +00:00
Pedro Algarvio
60f215f191 Add from __future__ import absolute_import 2015-01-30 22:25:04 +00:00
Nitin Madhok
c992f04f32 Changing permissions of test files and fixing lint violations 2014-12-19 05:50:18 -05:00
Mike Place
951a434228 +x for eventlisten and minionswarm 2014-11-05 14:49:32 -07:00
Thomas S Hatch
da8612ddcc Merge pull request #14243 from cachedout/masterswarm
Refactor into base swarm and master/minion swarm
2014-07-15 12:22:46 -06:00
Mike Place
200ef6b642 Refactor into base swarm and master/minion swarm 2014-07-15 11:31:07 -06:00
Pedro Algarvio
850e38d9eb Ignore W0221 2014-07-15 01:44:03 +01:00
Mike Place
83ce730ec2 Basic master support for minionswarm 2014-07-14 16:59:44 -06:00
Thomas S Hatch
4551c46abb Give minions a unique pki dir in raet minion swarm 2014-06-26 12:19:31 -06:00
Thomas S Hatch
ecc9b33859 iraet swarm needs ports 2014-06-26 11:35:12 -06:00
Thomas S Hatch
e20da9feca Add sock_dir to raet swarming 2014-06-26 11:04:11 -06:00
Thomas S Hatch
d8efa82b15 initial commit for minion swarm to work with raet
This skips the single keygen that zeromq transport uses because
1. Key gen is not exposed to salt-key yet for raet
2. raet keys are super fast, so I don't think this will be an issue,
but testing on a grander scale will tell us for sure
2014-06-22 22:40:40 -06:00
Seth House
b336c48b8c Pass the minionswarm user through to salt-key
Otherwise salt-key would fail with a user warning and not write the key
which would then cause the minionswarm to fail when referencing the key.
2014-02-06 10:59:34 -07:00
Seth House
d779354351 Moved grabbing/overriding the minionswarm user to parse-time
This change provides a single source of truth for what user the swam
will be running as.
2014-02-06 10:59:34 -07:00
Pedro Algarvio
69d0f907f9 Make use of the print() function. 2014-02-03 11:07:43 +00:00
Arthur Lutz
0cad68c59d add user options to salt-key and to tests/minionswarm.py so one can run in userland 2014-01-23 12:44:14 +01:00
Pedro Algarvio
d02a2bc224 Include the python encoding file header on tests. 2013-11-27 11:19:24 +00:00
Henrik Holmboe
4a48dc791b Prettify subcommand to kill minions
I realize that this is just cosmetic change. And possibly that there is
a compatibility issue, if minionswarm is to be used on platforms that
don't have pkill.
2013-10-11 10:02:23 +02:00
Seth House
08127614f9 Updated arg to salt-key in minionswarm script 2013-07-01 17:03:39 -06:00
Chris Rebert
c7ff123a0f use genexpr & list comp in minionswarm test 2013-05-03 19:45:19 -07:00
Chris Rebert
498d2999db more typo fixes 2013-05-01 16:52:52 -07:00
Seth House
2facccd849 Fixed double dashes in default minion swarm names 2013-04-14 17:05:43 -06:00
Thomas S Hatch
8ac95960b3 Add name option to minionswarm so many hosts can check in 2013-04-11 15:36:28 -06:00
Thomas S Hatch
2edd526c71 Remove unused import 2013-02-08 10:57:20 -07:00
Joseph Hall
d0f101650d Give each minion its own pkidir (still using identical keys) 2012-12-11 14:41:40 -07:00
Seth House
8c18c29323 Fixed bungled default logic for minionswarm root_dir 2012-10-09 12:20:46 -06:00
Seth House
17627fea89 Added flag to set the root_dir for a minionswarm 2012-10-08 14:16:53 -06:00
Pedro Algarvio
348cd9e51e Improve the tests minion swarm.
The `pki` and all minion's configuration directories are now all created under the same temporary directory.
The minion's ID's are now something more meaningful and less random to ease the interpretation of what's going on while running.
Minor pep-8 corrections.
2012-09-08 20:31:25 +01:00
Pedro Algarvio
fc3070c3bb Keep minionswarm temporary files/dirs. Refs #1964.
* Provide an option to the parer which allows not to delete temporary files/directories created for the minionswarm.
2012-09-05 12:01:48 +01:00
Pedro Algarvio
145197b48b Fix test/minionswarm.py. Refs #1964.
* Allow the `minionswarm` to run under user space
* Provide some additional configuration to the minions to use the temporary directories created for the swarm.
* Try to properly shutdown the running minions.
* As a last resort, `kill -KILL` all minions still running.
2012-09-05 11:54:17 +01:00
Thomas S Hatch
94a57bd806 repair minionswarm for updated configdir changes 2012-09-02 22:42:49 -06:00
Thomas S Hatch
c29d1d6076 Only generate one pair of minion keys for the swarm 2012-06-13 13:37:28 -06:00
Thomas S Hatch
bb9558b316 Fix exception in minionswarm 2012-06-11 14:43:42 -06:00
Thomas S Hatch
b4f9c22883 Doh! thats the wrong cachedir config! 2012-06-06 11:18:17 -06:00
Thomas S Hatch
7ad6b3c6e4 Add abaility to disable minion modules in the swarm 2012-06-05 11:44:01 -06:00