Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	86e19cd8c8  
						 
						
							
							
								
								
								This adds async poll support to playbooks.  See examples.  Some more testing due + docs  
							
							... 
							
							
							
							
							but this is more or less a mirror of what /bin/ansible does.  It also has a 'fire and
forget' mode if the poll interval is left off or set to 0. 
							
						 
						
							2012-03-12 20:53:10 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	db7ba87111  
						 
						
							
							
								
								
								Add polling logic in runner such that all actions get kicked off everywhere then polling  
							
							... 
							
							
							
							
							happens only on needed hosts, allowing some hosts to fail and drop out of the running. 
							
						 
						
							2012-03-11 20:54:54 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	49a636d8a0  
						 
						
							
							
								
								
								Fixed up async and polling logic.  
							
							
							
							
						 
						
							2012-03-11 19:27:43 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	5be1a612d3  
						 
						
							
							
								
								
								Add async polling logic to runner.  Will add to playbook shortly, have to diagnose why paramiko  
							
							... 
							
							
							
							
							is not letting async_wrapper daemonize itself when it does work fine when directly executed. 
							
						 
						
							2012-03-11 18:40:35 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	60a13cf540  
						 
						
							
							
								
								
								Ignore commented out lines in the ansible setup files.  
							
							
							
							
						 
						
							2012-03-10 21:19:41 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	bb5e4fad48  
						 
						
							
							
								
								
								Abstracted out transport from implementation so it can be pluggable.  Also fixes for output format.  
							
							
							
							
						 
						
							2012-03-10 13:35:46 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Seth Vidal 
								
							 
						 
						
							
							
								
							
							
	b576e389b1  
						 
						
							
							
								
								
								runner buglet and yum module  
							
							... 
							
							
							
							
							runner: fix buglet causing logger output to include a u for the command
yum: add yum module:
   ensure=installed pkg=name/name.arch/name-ver-rel.arch
   ensure=removed pkg=name/name.arch/name-ver-rel.arch
   list=installed
   list=updates
   list=available
   list=pkgspec
   list=repos 
							
						 
						
							2012-03-09 18:33:58 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Seth Vidal 
								
							 
						 
						
							
							
								
							
							
	19b784e480  
						 
						
							
							
								
								
								if we've failed a connection to a host - we cannot set items to the  
							
							... 
							
							
							
							
							'conn' object since it is not an object on failure - it's a string. 
							
						 
						
							2012-03-09 00:19:55 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	8e20ed3714  
						 
						
							
							
								
								
								src= parameters for template and copy operations can be relative to the playbook (for /usr/bin/ansible-playbook) or current directory (for /usr/bin/ansible)  
							
							
							
							
						 
						
							2012-03-06 21:13:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	0935506d6f  
						 
						
							
							
								
								
								Templating as non-root should not require passing in the metadata= parameter.  
							
							
							
							
						 
						
							2012-03-05 22:23:56 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	8d57ceecf1  
						 
						
							
							
								
								
								Factoids and push variables via setup are now available to be templated in command args  
							
							... 
							
							
							
							
							as well as template files.  PLUS, variables are now expressed in playbooks without having
to know about the setup task, which means playbooks are simpler to read now. 
							
						 
						
							2012-03-05 20:09:03 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Tim Bielawa 
								
							 
						 
						
							
							
								
							
							
	b190ea4b62  
						 
						
							
							
								
								
								Fix parse_hosts to not blow up on ungrouped hosts.  
							
							
							
							
						 
						
							2012-03-05 14:09:01 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	fae3a71899  
						 
						
							
							
								
								
								WIP on async tests  
							
							
							
							
						 
						
							2012-04-04 11:24:22 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	369b9cde1c  
						 
						
							
							
								
								
								Add test for template module and make 'dark' errors clearer if we get output back and the JSON  
							
							... 
							
							
							
							
							is not parseable 
							
						 
						
							2012-04-04 10:57:54 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	8d06c074b1  
						 
						
							
							
								
								
								* Added uptime.py as an example of somewhat minimal API usage & reporting  
							
							... 
							
							
							
							
							* Pattern in API now has a default
* Fixed bug in template module operation detected from running playbook (tests for that pending)
* Workaround for multiprocessing lib being harmlessly squeaky (feeder thread got sentinel) 
							
						 
						
							2012-04-04 10:27:24 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	db57933614  
						 
						
							
							
								
								
								Allow ":" to be used to split patterns as well as ";" so if you are just using group names or fully explicit names you do not need to use shell quoting at all.  Obviously if you use wildcards like "*" you wouldstill.  
							
							
							
							
						 
						
							2012-03-03 14:26:59 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	45c40524ef  
						 
						
							
							
								
								
								Time limit needs to be passed to async_wrapper.  
							
							
							
							
						 
						
							2012-03-03 12:47:31 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	eaa7714ff8  
						 
						
							
							
								
								
								Laying the groundwork for async mode, async status script still needs to be done, and async_wrapper  
							
							... 
							
							
							
							
							still needs to daemonize.  Then, once done, playbook can be taught how to poll async within the
timing window. 
							
						 
						
							2012-03-03 12:25:56 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	cbfabcd0fb  
						 
						
							
							
								
								
								Add -i, -k, and -M to ansible-playbook CLI to match options in /usr/bin/ansible  
							
							
							
							
						 
						
							2012-03-02 22:54:25 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	e4304a0ac5  
						 
						
							
							
								
								
								Make sure tempdirs are cleaned up after execution steps, fix notifiers, make sure  
							
							... 
							
							
							
							
							service module is installed by setup.py 
							
						 
						
							2012-03-02 22:38:55 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	6541f338df  
						 
						
							
							
								
								
								add pyflakes target & associated fixes.  Also decided to save JSON to --tree file so it can  
							
							... 
							
							
							
							
							be better used programatically.  May have to come up with another system of tree logging for
playbook if playbook decides to have tree logging.  Presumably not the highest priority. 
							
						 
						
							2012-03-02 22:10:51 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	3ad9db4966  
						 
						
							
							
								
								
								Some minor from 'pep8', and silencing the PEP8 messages I don't care about.  
							
							... 
							
							
							
							
							Also make pep8 show all messages rather than just 1 per code. 
							
						 
						
							2012-03-02 22:03:03 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	e6a1acf756  
						 
						
							
							
								
								
								Let "all" be an alias for "*" in patterns, fix output bug on non-command execution, make clean now removes the build dir  
							
							
							
							
						 
						
							2012-03-02 19:44:50 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	847846af0e  
						 
						
							
							
								
								
								-p has been replaced by a required option.  Various docs changes.  
							
							
							
							
						 
						
							2012-03-01 22:10:47 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	bed29b7e11  
						 
						
							
							
								
								
								Allow the /etc/ansible/hosts file to contain groups and those group names to be used in place  
							
							... 
							
							
							
							
							of pattern names. 
							
						 
						
							2012-03-01 20:41:17 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Christopher Johnston 
								
							 
						 
						
							
							
								
							
							
	d15172abdc  
						 
						
							
							
								
								
								add a -T option for setting ssh timeout in seconds  
							
							
							
							
						 
						
							2012-03-01 16:54:17 -08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Christopher Johnston 
								
							 
						 
						
							
							
								
							
							
	2773234c3f  
						 
						
							
							
								
								
								python 2.5 does not include json so lets try to use simplejson  
							
							
							
							
						 
						
							2012-02-29 09:30:02 -08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	ab266472be  
						 
						
							
							
								
								
								Trim errors on connection refused messages  
							
							
							
							
						 
						
							2012-02-28 04:23:34 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	7de661dd2c  
						 
						
							
							
								
								
								Add ansible command, fix import error in runner  
							
							
							
							
						 
						
							2012-02-28 00:45:37 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	be4cb64c92  
						 
						
							
							
								
								
								Relicensing to GPLv3, all previous committers ok'd on mailing list.  
							
							
							
							
						 
						
							2012-02-28 19:08:09 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	1caafb7bd9  
						 
						
							
							
								
								
								Stop evaluating a host in a playbook when it encounters the first failure.  
							
							
							
							
						 
						
							2012-02-27 22:28:01 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Seth Vidal 
								
							 
						 
						
							
							
								
							
							
	85f751175d  
						 
						
							
							
								
								
								- make tmp_path be a dir so we can put more than one command in there securely  
							
							
							
							
						 
						
							2012-02-27 17:52:37 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Seth Vidal 
								
							 
						 
						
							
							
								
							
							
	bd7a71bb29  
						 
						
							
							
								
								
								implement manual multiprocessing pools for the runner.  
							
							... 
							
							
							
							
							this fixes the ctrl-c not-working problem.
implemented this solution: http://www.bryceboe.com/2010/08/26/python-multiprocessing-and-keyboardinterrupt/#georges 
also add hosts which do not get a chance to return results to the 'dark' results. 
							
						 
						
							2012-02-27 00:43:02 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Seth Vidal 
								
							 
						 
						
							
							
								
							
							
	1a20b00d1f  
						 
						
							
							
								
								
								If the error is an authentication exception - just report it that way don't dump out an unappetizing traceback which just says the same  
							
							
							
							
						 
						
							2012-02-26 22:59:45 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	fc4ba46d1a  
						 
						
							
							
								
								
								Add a ton of comments so folks can understand what runner does.  More refactoring is  
							
							... 
							
							
							
							
							certaintly possible too. 
							
						 
						
							2012-02-26 20:29:27 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	61d064d011  
						 
						
							
							
								
								
								Fixed up KV munging in runner, misc fixes to copy, setup, and template modules  
							
							
							
							
						 
						
							2012-02-26 19:55:26 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	e5f62f20b1  
						 
						
							
							
								
								
								make copy & template module take key/value parameters so we're consistent.  Only the command  
							
							... 
							
							
							
							
							module works differently now
starter manpage for modules
allow template file location to be passed into template & setup modules 
							
						 
						
							2012-02-26 19:21:44 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	cb90df2377  
						 
						
							
							
								
								
								Allow multiple patterns to specified, just like Func did.  
							
							
							
							
						 
						
							2012-02-25 17:22:48 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	b44ae0af90  
						 
						
							
							
								
								
								applying indentation patch from skvidal  
							
							
							
							
						 
						
							2012-02-25 17:16:23 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	de80166b6d  
						 
						
							
							
								
								
								Misc refactoring, updated TODO to reflect new templating features being completed  
							
							
							
							
						 
						
							2012-02-05 13:25:10 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	b053df4182  
						 
						
							
							
								
								
								Some refactoring of runner.py -- more to come to eliminate repeated code  
							
							
							
							
						 
						
							2012-02-05 12:48:52 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	6cceaa5f6a  
						 
						
							
							
								
								
								Implment copy with an actual minion-side module such that we can get md5sum's and  
							
							... 
							
							
							
							
							onchange events like Puppet's file providers do. 
							
						 
						
							2012-02-24 05:15:28 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	440bac4a95  
						 
						
							
							
								
								
								Added remote templating engine using jinja2, see examples/playbook.yml for usage.  
							
							... 
							
							
							
							
							Cleanup is due in runner.py 
							
						 
						
							2012-02-24 04:35:51 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	5d6b0280d5  
						 
						
							
							
								
								
								Added stub for template execution, WIP.  
							
							
							
							
						 
						
							2012-02-24 03:45:36 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Seth Vidal 
								
							 
						 
						
							
							
								
							
							
	160470bc49  
						 
						
							
							
								
								
								- add match_hosts() method to runner.Runner()  
							
							... 
							
							
							
							
							- add pattern parameter to self._matches() and match_hosts() so you can query
  for matches against the host list
- these are useful when writing scripts and you want to tell the user
  what hosts you will be running on before  actually executing anything. 
							
						 
						
							2012-02-25 01:06:18 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Seth Vidal 
								
							 
						 
						
							
							
								
							
							
	e7bb41ff89  
						 
						
							
							
								
								
								simple logging setup using logger.  
							
							... 
							
							
							
							
							/usr/bin/logger should probably be a constant or defined in some sort of config as well as the log priority 
							
						 
						
							2012-02-24 23:25:30 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael DeHaan 
								
							 
						 
						
							
							
								
							
							
	d079c8e5f3  
						 
						
							
							
								
								
								Move runner out of __init__.py so it's clear what classes live where.  
							
							
							
							
						 
						
							2012-02-23 23:28:58 -05:00