Commit Graph

19364 Commits (efed4e577cc33563276d803513e7b6267daf9fc1)
 

Author SHA1 Message Date
Brian Coca efed4e577c raw should not use default executable (#16085)
also removed unused cruft in script
(cherry picked from commit a529a60478)
9 years ago
J. Javier Maestro 9bb754c0a7 Fix: create retry_files_save_path if it doesn't exist (#15659)
* Fix: create retry_files_save_path if it doesn't exist

Ansible documentation states that retry_files_save_path directory will be
created if it does not already exist. It currently doesn't, so this patch
fixes it :)

* Use makedirs_safe to ensure thread-safe dir creation

@bcoca suggested to use the makedirs_safe helper function :)

(cherry picked from commit 828b73dd2d)
9 years ago
Toshio Kuratomi d65e2aec81 Update submodule ref 9 years ago
Brian Coca e971a63c33 avoid processing bad mtab entries (#16206)
fixes #16174
(cherry picked from commit c376954ecf)
9 years ago
Toshio Kuratomi 553ceefe81 Update submodule refs 9 years ago
James Cammarata c9b125d21a Fix hostvars lookup of locahost based on 5f1bbb4
(cherry picked from commit b51d0dd69b)
9 years ago
James Cammarata 00cf1cbac1 There can be only one localhost
The changes to exclude implicit localhosts from group patterns exposed
the bug that we sometimes create multiple implicit localhosts, which
caused some bugs with things like includes, where the host was used as
an entry into a dict, so having multiple meant that the incorrect host
(with a different uuid) was found and includes were not executed for
implicit localhosts.
9 years ago
James Cammarata 2e003adbc8 Expand return code values returned by TQM and strategies
This allows the PlaybookExecutor to receive more information regarding
what happened internal to the TaskQueueManager and strategy, to determine
things like whether or not the play iteration should stop.

Fixes #15523

(cherry picked from commit fbec2d9692)
9 years ago
Peter Sprygada d4c78b84f0 fixes issue with ssh keyfile and nxos authentication
The nxos cli provider would not properly handle ssh key files passed
from the playbook task.   The ssh_keyfile argument is now properly
passed to the ssh authentication method

This fix address the bug reported in #3862
9 years ago
nitzmahone 405f636cc7 bump submodule refs 9 years ago
James Cammarata a2c1247dff Revert "don't tempalte register"
This reverts commit 7ba790bbaf.

Fixes #15700
9 years ago
James Cammarata 3ced6d3e90 Further tweaks to variable precedence to make it match our docs
Also removes looking at role variables from the Block, as those are
merged in separately via VariableManager
9 years ago
James Cammarata a9c9cd773f Fix variable precedence issue where set facts beat role params
Also updates doc on variable precedence, as it was incorrect for the
order of play vars/vars_prompt/vars_files in relation to set_fact and
registered variables.

Fixes #14702
Fixes #14826
9 years ago
James Cammarata 313d94cc71 Create state in PlayIterator for unknown hosts rather than raise errors
Since we now use the PlayIterator to carry forward failures from previous
play executions, in the event that some hosts which had previously failed
are not in the current inventory we now create a stub state instead of
raising an error.
9 years ago
Krzysztof Magosa aa66551352 fix: playbook_on_task_start expects name and not task object (#16168)
(cherry picked from commit 721da46842)
9 years ago
Ritesh Khadgaray 66d54dec58 set remote_user to default if none is found when using delegate_to (#16138)
(cherry picked from commit ef9238ab85)
9 years ago
Peter Sprygada 6fc2660194 fixes issues with authenticating using ssh-agent for ios devices
Exception was raised when trying to use ssh-agent for authentication to
ios devices.   This fix enables ssh-agent and enable use of password
protected ssh keys.  There is one additional fix to capture authentication
exceptions nicely.
9 years ago
Matt Clay 8fd7e970a1 Remove opensuseleap from shippable tests in 2.1.
These tests were not part of CI at the time 2.1 was released.

They are not currently passing in stable-2.1, as changes necessary
for them to pass were made after the release.
9 years ago
Robin Roth 263e51095f use userdir module as example instead of alias (#15540)
* alias module is very basic and removing it leads to the suse default
  config failing
* future improvements might test different modules and the effect of
  them being removed
(cherry picked from commit cf62a62b83)
9 years ago
Rene Moser e1765c9d0d tests, postgresql: add ubuntu 16.04 support
(cherry picked from commit 5583027f99)
9 years ago
Rene Moser d14b29efc2 tests, apt_repository: disable Ubuntu 16.04 as there is no package yet
(cherry picked from commit 39e4caafb2)
9 years ago
Matt Clay 8b3ce600d0 Detect use of Travis tests on Shippable.
This can occur when building pre-Shippable branches or PRs.

(cherry picked from commit 03597143d0)
9 years ago
Robin Roth 945fb3411e Run tests on ubuntu1604 and opensuseleap (#15936)
* reduce async sleep time in test
* make zypper test less destructive (don't break following uses of zypper)
* fix ca cert on suse
* fix/enable postgres/mysql on opensuseleap
* fix mysql test for mysql versions 5.7.6 and newer
* skip sni_host check on ubuntu1604
* add HTTPTESTER flag for test_uri

ubuntu 16.04 uses dash which drops env variables containing a dot
we work around this by adding an explicit env variable to enable httptester

(cherry picked from commit c06884eff0)
9 years ago
Rene Moser e2ebae5522 tests: fix tests on Debian 8
(cherry picked from commit c20d1fced7)
9 years ago
Matt Clay 6f0bc4dd82 Corrected reference to httptester container.
(cherry picked from commit b755bcd875)
9 years ago
Matt Martz 247d4ebb8d Add httptester docker container files and update run_tests.sh to use ansible/httptester
(cherry picked from commit 164f247ec8)
9 years ago
Michael Scherer 86516eae05 Do not test vca and vmware.py for py2.4 (#15887)
Since both of them depend on libraries not
working on python 2.4, we shouldn't restrict
ourself on 2.4, cf https://github.com/ansible/ansible/pull/15870
(cherry picked from commit cc61531a74)
9 years ago
Matt Martz df33ff6c65 Use httptester docker image for http tests (#15811)
* Use httptester docker image for http tests

* When not running with an httptester linked container, use public test sites

(cherry picked from commit accf40d8a8)
9 years ago
Brian Coca 73b250ecf7 fix default for removing images
(cherry picked from commit 2af8e3b9d8)
9 years ago
Brian Coca d77ff116c2 added ability to also subset make tests
(cherry picked from commit 27a1ae4732)
9 years ago
Brian Coca 6c80be47a2 another var 'defaulted' in run_tests
(cherry picked from commit 47d58c30e4)
9 years ago
Brian Coca 77dc6a36fd added defaults for 'optional' vars
(cherry picked from commit 3669ab2456)
9 years ago
Brian Coca 217f8fd824 fine tuned shell switches for run_tests.sh
(cherry picked from commit 52a714143f)
9 years ago
Matt Clay dee38ceb95 Update how shippable scripts are called.
(cherry picked from commit 6d74f43eff)
9 years ago
Matt Clay 66f8da7258 Add full support for Shippable CI.
(cherry picked from commit b0e1efbd62)
9 years ago
Michael Schmid c1fe7aa322 Fixes #15915: New HandlerTaskInclude Class which can run TaskIncludes inside Handlers 9 years ago
jctanner 4cabc94f09 Force relative role paths to be absolute and correct errors about missing path(s). (#16088)
Addresses #10811
9 years ago
James Cammarata 7725c58315 Make sure we add host/group vars files when parsing inventory
Also fixes a bug where add_host was not adding the vars files

Fixes #16117
9 years ago
James Cammarata 9936d7355c Fix recursive call of _load_inventory_file() in VariableManager
Fixes #16128
9 years ago
James Cammarata 0ba9a6a875 Fix the way host and group vars are loaded
* In the VariableManager, we were not properly tracking if a file
  had already been loaded, so we continuously append data to the end
  of the list there for host and group vars, meaning large sets of data
  are duplicated multiple times
* In the inventory, we were merging the host/group vars with the vars
  local to the host needlessly, as the VariableManager already handles that.
  This leads to needless duplication of the data and makes combining the
  vars in VariableManager take even longer.
9 years ago
Tobias Wolf 7287effb5c Solve performance issue with a large number of groups (#13957)
Ansible excessively checks the file system for the potential presence of
`group_vars` and `host_vars` files.

For large numbers of groups this leads to combinatorial performance
issues.

This commit generates a set of group_vars and host_vars filenames using
`os.listdir()` in every possible location and then checks against the sets
before making a stat of the file system.

Also included in this commit is caching of the base directory lookup
for the inventory.
9 years ago
André Cruz b950f75489 Use the python executable specified by the environment.
(cherry picked from commit 18831c72f9)
9 years ago
André Cruz 535a436703 Fix whitespace.
(cherry picked from commit 1fdb7613f1)
9 years ago
James Cammarata 41dde7259b Mark implicitly hosts as such and exclude them from the all group
Fixes #16059
9 years ago
nitzmahone 31f6e26009 bump extras submodule ref for azure fixes 9 years ago
nitzmahone 6e6dd98b86 update azure minimum doc fragment 9 years ago
nitzmahone a538b222dc updates for Azure SDK 2.0.0rc4 9 years ago
James Cammarata 55d40b50e4 Removing __version__ from __init__.py since it belongs in release.py 9 years ago
Toshio Kuratomi 6f5d1456bc Fix the copy action to not send the content as a param. (#16127)
Has already been transferred as a tempfile.

This fixes the error in https://github.com/ansible/ansible/issues/16125
but there may be higher level issues that should be fixed as well (other
modules might be able to cause status fields like failed and changed to
return a censored string instead of a bool).  So leaving 16125 open for
now.
9 years ago
nitzmahone 7ddf6dbbd4 bump core submodule ref 9 years ago