Commit Graph

6369 Commits (8c9f84f6f8fdc617c558ef8960cadaccd5080dbd)
 

Author SHA1 Message Date
Alek Storm 8c9f84f6f8 Parse --extra-vars as YAML (which includes JSON) 11 years ago
James Cammarata dfbe1132d2 Merge branch 'allow_wildcard_yum' of https://github.com/mscherer/ansible into mscherer-allow_wildcard_yum 11 years ago
James Cammarata 268f171ee4 Merge branch 'feature/zabbix-inventory' of https://github.com/resmo/ansible into devel 11 years ago
René Moser 308026f234 improved zabbix inventory. added sys.exit(1) where needed, added some exception handling. 11 years ago
James Cammarata 7bd8c18fa7 Merge branch 'gitfix' of https://github.com/johanwiren/ansible into johanwiren-gitfix 11 years ago
Herby Gillot c2f8215c06 ec2 inventory: Verify that a security group exists before trying to use its name as a key in inventory. 11 years ago
James Cammarata 20a57dcdcb Merge pull request #3917 from resmo/fix/openshift-inventory-shebang
fixed shebang in openshift inventory
11 years ago
Johan Wirén dcd556b92f Fixed so that we no longer check with the remote if a checkout already is at the desired sha version. 11 years ago
René Moser 791a2d5757 fixed shebang in openshift inventory 11 years ago
James Cammarata 12f2caeed6 Merge branch 'pacman_local_plus_check' of https://github.com/mivok/ansible into mivok-pacman_support_check_mode 11 years ago
James Cammarata de4ed11fa6 Merge branch 'pacman_support_check_mode' of https://github.com/mivok/ansible into mivok-pacman_support_check_mode 11 years ago
James Cammarata e11bb0cad4 Merge branch 'plugins-work' of https://github.com/ferringb/ansible into ferringb-plugins-work 11 years ago
James Cammarata 462cd4f728 Merge branch 'pulls/fix-hostvars-inconsistancy' of https://github.com/ferringb/ansible into ferringb-pulls/fix-hostvars-inconsistancy 11 years ago
James Cammarata 7f37f8fddd Merge branch 'feature/zabbix-inventory' of https://github.com/resmo/ansible into resmo-feature/zabbix-inventory 11 years ago
Arthur Taylor 1dd3ff3879 Added Overwrite option for Route53 record creation 11 years ago
James Cammarata e6ad3b7792 Merge pull request #3895 from mscherer/fix_option_new_ssh
make sure ssh do not ask password
11 years ago
James Cammarata 157b697a83 Merge branch 'always_run-6' of https://github.com/stoned/ansible into stoned-always_run-6 11 years ago
James Cammarata abac720255 Merge branch 'command-relpath' of https://github.com/j2sol/ansible into j2sol-command-relpath 11 years ago
James Cammarata d9d49cf182 Merge branch 'add_tests' of https://github.com/mscherer/ansible into mscherer-add_tests 11 years ago
James Cammarata 10de5c8fe3 Merge pull request #3913 from jlund/ec2-typos
Fixing typo in EC2 modules
11 years ago
Alek Storm 21d2069a74 Support multiple --extra-vars flags 11 years ago
James Cammarata af4f0bd008 Fix for "argument must be an int, or have a fileno() method" error
The issue was that, when forks == 1, the _executor() function was
being called with None for the value of new_stdin.

Fixes #3841, #3902
11 years ago
Michael DeHaan 12a0a01cb0 Update releases 11 years ago
Michael DeHaan d9152eb583 Update changelog 11 years ago
James Cammarata 8eadd1c7ba Merge pull request #3915 from jlund/changelog-cleanup
Minor cleanup of CHANGELOG for 1.3
11 years ago
Joshua Lund 73fd9d9687 Minor cleanup of CHANGELOG for 1.3 11 years ago
Joshua Lund 654b37f212 Fixing typo in EC2 modules 11 years ago
James Cammarata 978af89175 Disallow running async tasks with lookup plugins
Fixes #2897
11 years ago
James Cammarata e09ce0a3a7 Commenting out default ssh arguments line in ansible.cfg
Also removing the ControlPath option, as it will now be auto-generated
if the ControlPersist option is set in the arguments.
11 years ago
James Cammarata ed3e4aff84 Place retry file in the user's home dir instead of /var/lib/tmp
Addresses CVE-2013-4260: predictable filename used for failed results
in world writable directory.
11 years ago
James Cammarata 6bf5d19506 SSH connection plugin creates ControlPersist socket files in a secure directory
Files were being created in /tmp, but will now be created in $HOME/.ansible/cp/
Addresses CVE-2013-4259: ansible uses a socket with predictable filename in /tmp
11 years ago
Michael Scherer ddd582269c increase test coverage of inventory by around 5% according to nose 11 years ago
Jesse Keating 36ca709849 Allow for relative paths by using abspath
relative pathing comes in handy on occasion, particularly when
delegating to localhost and running some command out of your playbook
repo. Making use of os.path.abspath will allow for the full path to
chdir and executable to be discovered if not provided.
11 years ago
James Cammarata ae98a025bb Minor doc fixes for the pkgutil module 11 years ago
Alexander Winkler 59c7ef2afa Added module pkgutil 11 years ago
Stoned Elipot f0743fc32a Introduce the 'always_run' task clause.
The 'always_run' task clause allows one to execute a task even in
check mode.

While here implement Runner.noop_on_check() to check if a runner
really should execute its task, with respect to check mode option
and 'always_run' clause.

Also add the optional 'jinja2' argument to check_conditional() :
it allows to give this function a jinja2 expression without exposing
the 'jinja2_compare' implementation mechanism.
11 years ago
Michael Scherer 2bdba17a85 make sure ssh do not ask password
For some reason, ssh seems to ask for password even when
PasswordAuthentication is set to no, adding PreferredAuthentications
with the 2 options removed do the trick.
11 years ago
Kavin Kankeshwar 7ac3bbc198 resolved #3609 Change max_fail_pct to max_fail_percentage as recommended 11 years ago
Kavin Kankeshwar 3f247fcbe3 fixes ansible/ansible#3609 Add max_fail_pct to playbook parameter, to complement serial option, So if total number of failures execeed max_fail_pct * total number of hosts, do not go to the next serial batch 11 years ago
James Cammarata 2dd3f01513 Merge pull request #3893 from jonw/devel
docsite typos
11 years ago
Stephen Fromm 77b8ee1f84 Update ansible-pull man page doc (issue #3372) 11 years ago
Stephen Fromm cc3651592b Extend ansible-pull to support other source repositories
This extends ansible-pull so that it can support using other
source_control modules for checking out a playbook repository
(issue #3372).  This will check to see if the module exists before
it attempts to do the checkout and will exit if the module is not found.
It requires that the module used to check out the repository support the
parameters 'name' and 'version'.  The option -C, --checkout is now
optional and defaults to the module's default behavior for selecting a
branch, tag, or commit value.  For git, this continues to be HEAD.

Other changes include:
* Remove git from help and use generic term(s) where needed.
* Use SortedOptParser from ansible.utils
* More abstraction of common options used between ansible and
  ansible-playbook.
11 years ago
Stephen Fromm cc58403e48 Apply consistent parameter alises to hg and subversion
For issue #3372, apply consistent parameter aliases to source_control
modules.  For hg, add name and version and add to documentation string.
For subversion, add version and document version and name aliases in
documentation string.
11 years ago
Jon W d000f23344 typo
just darting a mistyped "ansible"
11 years ago
Jon W c4ab7009b2 minor corr pip-install
perhaps there may be pip distribution using "pip-install" but "pip install" is universal afaik
11 years ago
James Cammarata 49b0ff18a7 Missed some typos in macros for the xattr doc 11 years ago
James Cammarata 230077fda9 Fixing docs in xattr module 11 years ago
Petr Svoboda e3adfbf5f8 Add tests for undefined variable detection
Tests `test_playbook_undefined_varsX_fail` check if ansible detects
undefined variables when `error_on_undefined_vars` is enabled. These
tests fail without "Improve behavior with error_on_undefined_vars
enabled" patch.

Tests `test_playbook_undefined_varsX_ignore` check if ansible ignores
undefined variables when `error_on_undefined_vars` is disabled.

Also modify PlayBook._run_task_internal() so error_on_undefined_vars is
testable.
11 years ago
Petr Svoboda fff4f1da33 Improve behavior with error_on_undefined_vars enabled
Pass fail_on_undefined flag to recursive calls to `template` function,
so more undefined variables are detected.

Works only for Jinja style variables. Undefined legacy variables are
never detected.
11 years ago
Brian Harring 31061213fa Fix inconsistency in hostvars access.
Previously, hostvars would only expose a keys() list of hosts that had
been seen yet- however you could explicitly access the host if you knew
the name, and get the content that way.  This precludes template code
from being able to safely access information about other hosts if any
limiters/tags were in use.

Additionally, the object was inconsistent for hostvars['myhost'] access
and [x[1] for x in hostvars.items() if x[0] == 'myhost'] access; this is
due to the original derivation from the dict object.  .items() would be
handled by dict.items(), using the passed in setup_cache values without
using the actual lookup content.

This patch rebases the class implementation to a py2.6 dictmixin, fixing
those issues and restoring behaviour to match what the docs claim.
11 years ago