Commit Graph

1879 Commits (bcc2a4b513c59bcdbbc441304587ea88d830ca59)

Author SHA1 Message Date
James Cammarata bcc2a4b513 Minor fix so the any_errors_fatal value is checked properly 13 years ago
James Cammarata 4025695c00 Merge branch 'devel' of https://github.com/kavink/ansible into kavink-devel 13 years ago
Kavin Kankeshwar c24f6f438b Avoid ugly formatting due to a long if statement 13 years ago
James Cammarata 6e9fa5019f Reverting HostVars change from a mapping back to a dictionary 13 years ago
James Laska 546788a1b6 The required package for selinux is libselinux-python 13 years ago
James Cammarata 4e9dee6093 Use StringIO to feed md5 calculation to prevent unicode issues
Fixes #4014
13 years ago
James Cammarata 2a47f72139 Merge pull request #4049 from mscherer/fix_no_kerberos
Fix no kerberos
13 years ago
Michael Scherer f489702973 Also add back gssapi-keyex
While this is not currently implemented in openssh as far as I know,
there is patch floating around on the web and this may land one day
upstream.
13 years ago
Keiichi Mori 17c39b94a3 support GSSAPIAuth back
GSSAPIAuthentication has not been supported
due to PreferredAuthentications trick ( 2bdba17a85 )
13 years ago
James Cammarata ae9e38daf8 Change hostvars to a mutable mapping to more closely resemble a dict
Fixes #4030
13 years ago
James Cammarata 2cbf28385a Move check for accelerate mode deeper to account for ansible_connection
Fixes #4045
13 years ago
James Cammarata 20b0dc4abd Check for an empty executable passed into the accelerate plugin
This was breaking at least the script module, so it would seem best
to check for it and set it to the default executable value
13 years ago
James Cammarata 4bf506f683 Always run the accelerate module as the user specified in the play
Currently, the accelerate daemon will be run as the sudo_user if
specified, which is incorrect.
13 years ago
Scott Sturdivant 68bffb1233 Don't force accelerate connection for local actions. 13 years ago
James Cammarata f6e1bdabea Ensure ports are set correctly in accelerate module 13 years ago
guersam 64db327411 Fix: raise correct error in accelerate mode 13 years ago
kavink a075ec9831 Bug fix for a crash, when any_errors_fatal is true
Reported by Rumen:

TASK: [fail FAIL] *************************************************************
skipping: [hostname.com]
failed: [hostname.com] => {"failed": true}
msg: Failed as requested from task
Traceback (most recent call last):
  File "/usr/local/bin/ansible-playbook", line 268, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/usr/local/bin/ansible-playbook", line 208, in main
    pb.run()
  File "/Library/Python/2.7/site-packages/ansible/playbook/__init__.py", line 262, in run
    if not self._run_play(play):
  File "/Library/Python/2.7/site-packages/ansible/playbook/__init__.py", line 580, in _run_play
    if (hosts_count - len(host_list)) > int((play.max_fail_pct)/100.0 * hosts_count):
TypeError: object of type 'NoneType' has no len()
13 years ago
James Cammarata fff497a1ae Make sure the accelerated port is set to a sane value 13 years ago
James Cammarata cc21e5c90c Adding hostvars to injected variables in accelerate ssh runner
Also some minor cleanup of some fb* variables and functions, which
were remnants of the old fireball2 name

Fixes #4021
13 years ago
James Cammarata 7b13b1e03e Minor fix to dependency dupe patch 13 years ago
James Cammarata 16258edd7a Merge branch 'devel-duplicates2' of https://github.com/smoothify/ansible into smoothify-devel-duplicates2 13 years ago
James Cammarata a202adcae1 Merge branch 'doublecallback' of https://github.com/sergevanginderachter/ansible into sergevanginderachter-doublecallback 13 years ago
smoothify 5337397abd Second Attempt: Ensure duplicate roles are not loaded in the case of a missing meta/main.yml file. 13 years ago
James Cammarata c0fecf87d1 Increase default socket timeout to 5 minutes 13 years ago
smoothify 0411ea2867 Ensure duplicate roles are not loaded in the case of a missing meta/main.yml file. 13 years ago
James Cammarata 2e49d2003d Fix bug where accelerate keyword was not checked for boolean value
The play was just checking for the presence of the keyword in the
YAML datastructure, and not the value of the field, so doing something
like variable substitution was always causing the play to be accelerated
13 years ago
James Cammarata 2696135b3b Display error during launch of accelerated daemon
* also minor tweak to the # of retries in the connection attempt

Fixes #4012
13 years ago
James Cammarata 7c1c9b3d10 Fix message in utils related to python-keyczar and fireball/acc mode 13 years ago
James Cammarata 53c2f4c1bb Fix race condition on creating the temp directory for ControlPersist
Fixes #3943
13 years ago
James Cammarata d05c61d1f0 Merge branch 'devel' into fireball2
Conflicts:
	lib/ansible/playbook/__init__.py
	lib/ansible/playbook/play.py
13 years ago
James Cammarata 50f54f6bda Making variable names more descriptive for the default variables work 13 years ago
James Cammarata 02b7b79d7e Re-adding capability of tasks to see a unique view of their own defaults 13 years ago
James Cammarata 266d2008d8 Reverting the role default variables change
Loading the default variables in _build_role_dependencies() lead to
a side-effect where those variables were over-riding inventory variables.
13 years ago
James Cammarata 47a89a57fa Fixing bug in playbook use of default variables in roles 13 years ago
James Cammarata e0df5b5888 A couple more tweaks to role default variables/dependencies
* Default variables are now fed directly into roles, just like the
  other variables, so that roles see their unique values rather
  than those set at the global level.

* Role dependency duplicates are now determined by checking the params used
  when specifying them as dependencies rather than just on the name of the
  role. For example, the following would be included twice without having
  to specify "allow_duplicates: true":

  dependencies:
  - { role: foo, x: 1 }
  - { role: foo, x: 2 }
13 years ago
James Cammarata d69d5c294f Renaming fireball2 as 'accelerate' and removing old references 13 years ago
James Cammarata 736c8b19d3 Added ability to limit role dependencies to just one inclusion 13 years ago
James Cammarata 6f6efa268b Merge branch 'smoothify-defaults' into devel 13 years ago
James Cammarata 25e3eed519 Fixing a bug in variable precedence for roles and dependencies 13 years ago
James Cammarata 637d3070dc Allow default variables to be overridden by inventory variables 13 years ago
James Cammarata 9806f89a04 Revert "Construct the multiprocessing manager only once."
This reverts commit 1d13ec2da3.
13 years ago
James Cammarata 7d3ae9fc75 Fixing a few bugs related to fireball2
* ssh port not being picked up, always uses default of 22
* forgot to 'import time' in the fireball2 connection plugin
13 years ago
James Cammarata f66683863e Merge branch 'defaults' of https://github.com/smoothify/ansible into smoothify-defaults 13 years ago
James Cammarata faf82bf841 Fix bug with fetch when using sudo: true
Fixes #3111
13 years ago
James Cammarata af1dd7075f Adding chunked file transfers to fireball2 13 years ago
James Cammarata 959138d00d Added accelerate_port to plays, and made it configurable 13 years ago
James Cammarata 167f185092 Initial support for running gather_facts through fireball2 13 years ago
James Cammarata b45342923c Initial support for sudoable commands over fireball2
Caveats:
* requiretty must be disabled in the sudoers config
* asking for a password doesn't work yet, so any sudoers users must
  be configured with NOPASSWD
* if not starting the daemon as root, the user running the daemon
  must have sudoers entries to allow them to run the command as the
  target sudo_user
13 years ago
James Cammarata 4b552457e7 Bail out correctly if socket.recv gets nothing (indicating a closed socket) 13 years ago
James Cammarata 86f01965cd Fireball2 module will now launch in a proper tmp path 13 years ago