Commit Graph

14138 Commits (0828028c71bb5273a6796c0c47f93cf23b818471)
 

Author SHA1 Message Date
James Cammarata 0828028c71 Fixing unit test for included file changes 9 years ago
James Cammarata 7985d2a8be Moving included file stuff to a proper dedicated class and file (v2) 9 years ago
James Cammarata fe014148d9 Removing errant debug print 9 years ago
Brian Coca e7a096c4c5 cowsay is back! 9 years ago
Stefan Midjich e5190327f2 this fixes ansible on openbsd and freebsd systems. only tested on openbsd. 9 years ago
Toshio Kuratomi afc19894e1 Make fetch_url check the server's certificate on https connections 9 years ago
James Cammarata e59d4f3b51 More module_utils/basic.py unit tests for v2 9 years ago
James Cammarata 339a02c384 Started reworking module_utils/basic unit tests (v2) 9 years ago
Toshio Kuratomi f1ab1c48f4 Update submodule refs for v2 9 years ago
Toshio Kuratomi d793ed360b Fix syntaxerror in the required_if arg spec check 9 years ago
Monty Taylor 31609e1b16 Add required_if to AnsibleModule
There is a common pattern in modules where some parameters are required
only if another parameter is present AND set to a particular value. For
instance, if a cloud server state is "present" it's important to
indicate the image to be used, but if it's "absent", the image that was
used to launch it is not necessary. Provide a check that takes as an
input a list of 3-element tuples containing parameter to depend on, the
value it should be set to, and a list of parameters which are required
if the required parameter is set to the required value.
9 years ago
Brian Coca 16c70dd7d4 added equivalent of #9636 to v2 9 years ago
Brian Coca eaddc0b309 removed duplicate retry config entries 9 years ago
James Cammarata d4a31e8d26 Adding unit tests for TaskExecutor (v2) 9 years ago
Florian Apolloner 3010190592 Fixing up the hacking module_formatter code for v2 9 years ago
James Cammarata 838ff32001 Fix unit test for conn_info (v2)
The default user expected in the connection information is the current
user, not root
9 years ago
James Cammarata ecd5eb902d Adding unit tests for ConnectionInformation (v2) 9 years ago
Toshio Kuratomi 04e15ab54f Update v2 submodule refs 9 years ago
James Cammarata 9921a1d2be Unit tests for base strategy class (v2) 9 years ago
Toshio Kuratomi cc51e6b7c2 Update submodule refs in v2 9 years ago
Toshio Kuratomi b48be7c484 Update submodule refs for v2 9 years ago
Rene Moser 8da580a29c basic: fix ValueError if value of a type='int' is not an int
With this fix, we get a friendly error message:

    failed: [localhost] => {"failed": true}
    msg: value of argument start_port is not of type int and we were unable to automatically convert
9 years ago
Brian Coca 9a88e0fc8e removed empty choices from files 9 years ago
James Cammarata 21fa385ce7 Reorganizing plugin unit tests and adding start of strategy tests (v2) 9 years ago
Hugh Saunders 2e07567c16 Retry exec command via ssh_retry
This PR adds the option to retry failed ssh executions, if the failure
is caused by ssh itself, not the remote command. This can be helpful if
there are transient network issues. Retries are only implemented in the
openssh connection plugin and are disabled by default. Retries are
enabled by setting ssh_connection > retries to an integer greater
than 0.

Running a long series of playbooks, or a short playbook against a large
cluster may result in transient ssh failures, some examples logged
[here](https://trello.com/c/1yh6csEQ/13-ssh-errors).

Ansible should be able to retry an ssh connection in order to survive
transient failures.

Ansible marks a host as failed the first time it fails to contact it.
9 years ago
Toshio Kuratomi 684e30a5f4 Update submodule refs 9 years ago
Brian Coca 16df2726ca Merge pull request #11018 from tyll/ed25519
facts: Add ed25519 ssh pubkey
9 years ago
Toshio Kuratomi 8f71e47a73 Update core and extras module refs 9 years ago
James Cammarata a960fcd569 Adding module_utils tests from v1 to v2 9 years ago
James Cammarata 398b1d3e60 Cleaning up template test syntax a bit 9 years ago
James Cammarata 9aa8676bdd More template unit tests for v2 9 years ago
James Cammarata 23cd3294d0 Starting to add v2 tests for template 9 years ago
Till Maas 02d784598f facts: Simplify ssh key fetching 9 years ago
Till Maas e7846343e5 facts: Add ed25519 ssh pubkey 9 years ago
Brian Coca 0913b8263c made special treatment of certain filesystem for selinux configurable 9 years ago
Toshio Kuratomi 2e31a67532 Update module refs in v2 9 years ago
James Cammarata ac7dce4631 Fixing broken set_extra_vars method after fixing unit tests (v2) 9 years ago
James Cammarata 48d62fd934 Cleaning up VariableManager tests (v2) 9 years ago
James Cammarata a0509cda1e Fix test_role unit tests to use unique role names to avoid role caching errors 9 years ago
Toshio Kuratomi b91ce29007 Go to next task when we get an error in linear 9 years ago
Toshio Kuratomi bbda86ad0a Fix parsing tests so that they all run 9 years ago
James Cammarata b94e2a1f4e Fixing bugs related to parsing and fixing up parsing integration tests (v2) 9 years ago
Brian Coca b85ce38834 slight changes to error handling to align with v1 9 years ago
Toshio Kuratomi 079fca27a2 Update module refs for v2 9 years ago
James Cammarata 830225d9c1 Fix errors in subelements lookup plugin and associated tests (v2) 9 years ago
James Cammarata 4d999f8fe0 Fix logic error in parent attribute retrieval for blocks/roles (v2) 9 years ago
Jan Losinski dcb54d9657 Add integration test to verify #10073
In issue #10073 a misbehaviour in literal handling for inline lookup
arguments that can cause unexpected behaviur was reported. This
integration testcase reproduce the problem.

After applying pull request #10991 the issue is fixed and the test
passes.

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
9 years ago
James Cammarata b03b7892f8 Fix method of exiting task loop (v2) 9 years ago
Toshio Kuratomi d0d0e9933f Update module refs in v2 9 years ago
Serge van Ginderachter 9b646dea41 Add optional 'skip_missing' flag to subelements 9 years ago