Commit Graph

20942 Commits (e37ba8dd2984a94c67bcf1ac68fff7b40a050c3a)
 

Author SHA1 Message Date
Toshio Kuratomi bf3d546d9a Only dispkay failure to use cryptography at a higher verbosity
Fixes #17982
8 years ago
scottb 6be09ee866 Merge pull request #17973 from cgwalters/docs-playbook-loop
docs: Tweak sentence for interaction of loops + register
8 years ago
Toshio Kuratomi e5478a212f Update submodule refs 8 years ago
Colin Walters ec06278204 docs: Tweak sentence for interaction of loops + register
The previous version had an extra `during a loop` and the comma broke
the sentence in the middle weirdly.  I think this new version reads
better.
8 years ago
stephane a32e48555d Correct delegated_host_name check
In fb50698da3 a check for delegated_host_name being defined was added. Make this
check safer as it breaks some playbooks.
8 years ago
Bruno Rocha b06fb2022c Fix unbound method call for JSONEncoder (#17970)
* Fix unbound method call for JSONEncoder

The way it is currently it will lead to unbound method error

```python
In [1]: import json

In [2]: json.JSONEncoder.default('object_here')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-872fdacfda50> in <module>()
----> 1 json.JSONEncoder.default('object_here')

TypeError: unbound method default() must be called with JSONEncoder instance as first argument (got str instance instead)

```

But what is really wanted is to let the json module to raise the "is not serializable error" which demands a bounded instance of `JSONEncoder()`

```python
In [3]: json.JSONEncoder().default('object_here')
---------------------------------------------------------------------------
TypeError: 'object_here' is not JSON serializable 

```


BTW: I think it would try to call `.to_json` of object before raising as it is a common pattern.

* Calling JSONEncoder bounded `default` method using super()
8 years ago
Chris Houseknecht 20aedf90e7 Merge pull request #17943 from chouseknecht/galaxy_type_warning
Add warnings when installing container type roles
8 years ago
Scott Butler de58f673ef Reinstating mysteriously truncated hubspot analytics. 8 years ago
Brian Coca 03765ba65e Revert "cloudstack: docs: use local_action, not connection=local" (#17956) 8 years ago
Strahinja Kustudić 6dd07de10b Adds an alternative layout of inventories best practices 8 years ago
Chris Houseknecht 77de83730d Add warnings when installing container type roles 8 years ago
René Moser f50c0a78b2 cloudstack: docs: use local_action, not connection=local (#17951) 8 years ago
Brian Coca 7b2f15453d make explicit the scope of config's gather_subset
it only affects the invocation of setup triggered by the gather_facts directive in plays (explicit or implicit)
8 years ago
Brian Coca 1e8d0110ef removed non-feature -include in requirements.txt
fixes #17917
8 years ago
Toshio Kuratomi 9f6bbf8c2f Switch get_config to use a single value_type parameter to determine type.
This is better API as the booleans could conflict with each other.

If the config value is a string, make sure to return it as a text string
rather than a byte string.
8 years ago
Ryan S. Brown 6444992afb Update submodule ref for devel 8 years ago
Toshio Kuratomi 9265016b95 Fix a test failure when run on a system with python-future installed. 8 years ago
Pavlo Shchelokovskyy aa1ec8af17 Make interprocess polling interval configurable (#16560)
As recently there was back-and-forth with this hardcoded value
(0.001 -> 0.01 -> 0.005), obviousely the optimal value for it depends on
Ansible usage scanario and is better to be configurable.

This patch adds a new config option in DEFAULT section,
`internal_poll_interval`, with default of 0.001 corresponding to the
value hardcoded in Ansible v2.1.
This config option is then used instead of hardcoded values where
needed.

Related GH issue: 14219
8 years ago
Toshio Kuratomi f012159860 Move archive from the 2.2 release to the 2.3 release 8 years ago
Toshio Kuratomi 6a61b6d431 Add a whitelist for checking for six. Use it for digital_ocean.py 8 years ago
Toshio Kuratomi 9f9a960ceb Update submodules 8 years ago
Toshio Kuratomi 7e57403b9e Add a changelog entry for merging of multiple --tags arguments 8 years ago
Toshio Kuratomi 1efe782b46 Refactor parsing of CLI args so that we can modify them in the base class
Implement tag and skip_tag handling in the CLI() class.  Change tag and
skip_tag command line options to be accepted multiple times on the CLI
and add them together rather than overwrite.

* Make it configurable whether to merge or overwrite multiple --tags arguments
* Make the base CLI class an abstractbaseclass so we can implement
  functionality in parse() but still make subclasses implement it.
* Deprecate the overwrite feature of --tags with a message that the
  default will change in 2.4 and go away in 2.5.

* Add documentation for merge_multiple_cli_flags
* Fix galaxy search so its tags argument does not conflict with generic tags
* Unit tests and more integration tests for tags
8 years ago
Strahinja Kustudic 9962245b92 Moves 'statically included' messages to -vv verbosity (#17918) 8 years ago
James Cammarata e26bce5221 Sleep briefly while waiting for pending results to reduce CPU churn 8 years ago
Peter Sprygada 087fb4265f adds new option to get_config to grab config with passwords (#17915)
In order for the config to be returned with vpn passwords, the get_config()
method now supports a keyword arg include=passwords to return the desired
configuration.  This replaces the show_command argument
8 years ago
Matt Davis 0afc327532 Revert "Fix/windows documentation" (#17916) 8 years ago
Jordan Borean e357ec68f7 Fix/windows documentation (#17851)
* Updated Windows documentation for more clarity on particular features like NTLM auth.
8 years ago
Andrea Tartaglia 60d0e681dd ssh_executable docs (#17868)
* ssh_executable docs

Added docs about ssh_executable in intro_configuration and
intro_inventory under behavioral inventory params

* Added full stops + \n in intro_configuration
8 years ago
Adrian Likins 41d6f5c635 out.split('\n') -> out.splitlines() (#17879)
foo.split('\n') is picky about the type of 'foo'.
if 'foo' is a bytes type, then foo.split('\n')
will fail on py3 with:

   TypeError: a bytes-like object is required, not 'str'

The foo.split('\n') change isn't strictly required
when run_command returns native str types, but it
is more idiomatic and conceptually also supports other
line endings.
8 years ago
Scott Butler 02b08b1b0c Added new nav breadcrumbs 8 years ago
Pablo SEMINARIO b233f3ed3c Fix minor typo on testing paths example 8 years ago
James Cammarata 0a86ddc251 Move searching for roles in the cur basedir to last
Searching the DEFAULT_ROLES_PATH and the roles basedir should come
before this, and it has been a long standing oversight.

Fixes #17882
8 years ago
Mark Szymanski 3a6743fb54 Allowing hostcolor colours to be set 8 years ago
Brian Coca d9d7e413a5 fixed storing of cwd 8 years ago
Toshio Kuratomi 23305540b4 Make ini parsing slightly more robust
Prior to this commit, the ini parser would fail if the inventory was
not 100% utf-8.  This commit makes this slightly more robust by
omitting full line comments from that requirement.

Fixes #17593
8 years ago
Brian Coca 74b7590211 better inventory error messages 8 years ago
John R Barker 0dea70bf37 asa_template wasn't ever officially released
asa_template was added during 2.2 development, and removed before 2.2 hit RC1 so no need to give notice of deprecation.
8 years ago
James Cammarata d09f57fb3a Check for substates in is_failed before checking main state failure
Fixes #17882
8 years ago
Brian Coca 72e6ffad47 added script to unify repos
in case i forget how to do this, can be deleted afterwards
8 years ago
Toshio Kuratomi 08a58ae025 Fix for run_command tests now that it returns native strings 8 years ago
Brian Coca 125a8d3c65 no need for warnings in first_found 8 years ago
Brian Coca 54ce6a9b7a fix for include_role conflating vars/directives 8 years ago
Brian Coca d4b2ea3ec8 include_role process name from options, not task 8 years ago
Toshio Kuratomi 965dcabed2 Update submodule refs for the command fix with new run_command 8 years ago
Adrian Likins d0bdfc2abb Specify run_command decode error style as arg (#17886)
* Specify run_command decode error style as arg

Instead of getting the stdout/stderr text from
run_command, and then decoding to utf-8 with a
particular error scheme, use the 'errors' arg
to run_command so it does that itself.

* Use 'surrogate_or_replace' instead of 'replace'

For the text decoding error scheme in run_command calls.

* Let the local_facts run_command use default errors

* fix typo
8 years ago
Adrian Likins 2addc09050 cast/copy keys() to list to avoid py3 errors
In py3, dict.keys() is a view and not a copy of the
dicts keys, so attempting to delete items from the dict
while iterating over the keys results int

RuntimeError: dictionary changed size during iteration

Resolve by casting .keys() to a list() type.
8 years ago
Adrian Likins 9f673e0725 open anziballs payload 'wb' for py3 8 years ago
Brian Coca 828dcd0f40 updated devel to 2.3 (#17884)
* updated devel to 2.3

* got missing 2.2/2.3 conversions
8 years ago
Toshio Kuratomi ddd20627a4 Make run_command return native strings
This changes the return value on python3   Return value on python2 was
already byte strings (which is the native str type there.)
8 years ago