1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

3472 commits

Author SHA1 Message Date
Brian Coca
e0f72d5861 fixed json encoding issue with redis 2014-12-19 20:09:57 -05:00
Brian Coca
ed380136bc removed uneeded and posibly error producing json import
now uses utils.jsonify which does proper utf8 encoding
2014-12-19 20:05:00 -05:00
Michael Scherer
d4bf3127ec Add a explicit error when fact_caching_connection is not set
By default, jsonfile is not documented, and the error message
when fact_caching_connection is not set is a bit puzzling, so
a error message would be beeter ( documentation too ). While redis
is faster for bigger setup, jsonfile is fine for a small setup
and is easier to deploy.

The module will then stop ansible-playbook, as this match better
the philosophy of Ansible being a fail-fast system.
2014-12-19 14:36:15 +01:00
Toshio Kuratomi
64c256b356 git module now with clone parameter and update=no reverted 2014-12-17 13:46:14 -08:00
Toshio Kuratomi
2664de55fb Fix math filters 2014-12-16 16:59:22 -08:00
Toshio Kuratomi
fa6e587654 Pull in some new fixes to core modules 2014-12-16 16:09:50 -08:00
Toshio Kuratomi
c808c8a22a Fix some of the new math filters 2014-12-16 16:09:17 -08:00
Toshio Kuratomi
7ab1e52575 Merge pull request #9832 from bcoca/math_filters
math filters!
2014-12-16 15:42:22 -08:00
Brian Coca
b07ce8b942 removed redundant math functions as jinja2 provides abs() and round()
already
2014-12-16 17:57:21 -05:00
Brian Coca
7a43d40050 math filters! 2014-12-16 17:47:50 -05:00
Toshio Kuratomi
dc8207177e Merge pull request #9830 from nathancahill/vars_prompt-no-value
Fix vars_prompt no/false default values
2014-12-16 13:42:26 -08:00
Toshio Kuratomi
d09b64884f Merge pull request #9810 from mscherer/fix_7732
Do not use the variable name as a key for the result of the module
2014-12-16 13:09:06 -08:00
Toshio Kuratomi
828adbf788 Merge pull request #9807 from swimlappy/noproxy
Request: Honor the "no_proxy" environment variable in Ansible
2014-12-16 12:53:40 -08:00
Nathan Cahill
cc5a5978ef fix vars_prompt no/false values 2014-12-16 13:43:23 -07:00
Toshio Kuratomi
d1e27fe819 Merge pull request #9805 from mscherer/fix_9395
Strip the line to filter lines composed of only whitespaces
2014-12-16 12:42:06 -08:00
Toshio Kuratomi
735c8d3c4b Update core so docs build 2014-12-16 11:51:02 -08:00
Toshio Kuratomi
07e483b0c0 Update core modules 2014-12-16 11:18:15 -08:00
Jon Hawkesworth
e37b63386c Revised following comments from Chris Church.
Now uses sha1 checksums following merge of 9688.
Also I undid the changes I made to fetch.py
win_template.py now uses conn.shell.has_trailing_slash and
conn.shell.join_path
updated integration tests.
2014-12-16 04:47:01 +00:00
root
bf916fb58a Adding first pass at win_copy, win_file and win_template modules. 2014-12-16 04:47:01 +00:00
Jonathan Mainguy
8278626dd0 Added distribution facts for OpenSuse 2014-12-15 11:47:42 -05:00
Michael Scherer
9b8a55032d Do not use the variable name as a key for the result of the module
Using the variable name can interfere with various systems
used to communicate between modules and ansible ( as
reported in #7732 , where ansible_facts is a reserved key for
updating the fact cache, for example ).
2014-12-14 19:27:17 +01:00
Jason Holland
eedc51f213 Add support for SSL protocol version configuration option. Also fix 2 places where the SSL version was not being set properly. 2014-12-13 21:20:33 -06:00
Jason Holland
38dbce1527 Allow Ansible to honor the "no_proxy" environment varaible. 2014-12-13 21:12:23 -06:00
Michael Scherer
b84fba4439 Strip the line to filter lines composed of only whitespaces
Fix #9395
2014-12-13 20:56:06 +01:00
Toshio Kuratomi
12968acd5f Update the core modules to pull in some fixes 2014-12-12 12:09:34 -08:00
Brian Coca
215359084b Merge pull request #9375 from mantiz/fix-osfamily-and-distribution-on-archlinux
Fix os_family and distribution on archlinux
2014-12-12 14:28:38 -05:00
Nicolas Rémond
3cf0c09ce9 Variables lookup in a template should handle properly the undefined case 2014-12-12 12:11:17 +01:00
Toshio Kuratomi
2d266ce401 Update core submodule for docs fix 2014-12-10 11:22:40 -08:00
Brian Coca
21bb12ee84 updated refs to module repos 2014-12-10 14:06:48 -05:00
Toshio Kuratomi
c16b83af14 Updat ecore to pull in new git module fixes 2014-12-09 09:09:29 -08:00
Toshio Kuratomi
35cfeefdc1 Update core modules 2014-12-09 08:03:07 -08:00
Toshio Kuratomi
55cb55d67a Update the extras submodules to latest 2014-12-09 08:01:31 -08:00
Brian Coca
c725aa5e47 updated submodule refs 2014-12-08 17:28:30 -05:00
Michael DeHaan
d4da58e102 Merge pull request #9720 from vlajos/typofixes-vlajos-20141204
typofixes - https://github.com/vlajos/misspell_fixer
2014-12-08 14:00:52 -08:00
Toshio Kuratomi
3a5aec9743 file does not exist is not an error when checksumming for the template modules 2014-12-08 13:08:26 -08:00
Toshio Kuratomi
f2d2f425ae Fix comment 2014-12-08 13:07:34 -08:00
Toshio Kuratomi
3269a349f3 Fix remote_checksum with delegate_to and add tests for several ways that delegate_to works 2014-12-08 12:44:44 -08:00
Toshio Kuratomi
2a288141d3 Fix template module to fail if remote checksumming failed 2014-12-08 10:55:04 -08:00
Toshio Kuratomi
b042fcc349 Fix for delegate_to with hosts that aren't in inventory 2014-12-05 12:35:43 -08:00
Veres Lajos
bf5d8ee678 typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:23:35 +00:00
Toshio Kuratomi
3b80f63e22 Have known_hosts function use the url parameter instead of getting a specific attribute out of the module dict.
This makes the function useful in more places
2014-12-04 11:39:35 -08:00
Brian Coca
97408fe5b2 Revert "Make listify respect the global setting for undefined variables."
This 'mostly' reverts commit 2769098fe7.

Conflicts:
	lib/ansible/utils/__init__.py
	test/units/TestUtils.py
2014-12-04 09:14:53 -05:00
Brian Coca
e938f554b7 better exception handling for unexpected exceptions 2014-12-04 08:01:38 -05:00
Toshio Kuratomi
ae17b993d9 Update modules to allow USAGE as a valid grant option for postgres 2014-12-03 14:43:46 -08:00
Toshio Kuratomi
a2b2e54992 Fix checksum code to work with delegate_to/local_action
Fixes #9704
2014-12-03 14:43:03 -08:00
James Keener
4dfd86d847 Issue-9704 Better handling of missing python
When they python interpreter is set incorrectly for the machine the file
is being checked for (e.g. for the local or the remote), the error
manifests as a readability or directory missing error which can be very
misleading.
2014-12-03 17:15:00 -05:00
Brian Coca
1c5f625295 corrected exception name 2014-12-03 14:19:11 -05:00
Toshio Kuratomi
1ec8b6e3c5 Have remote_expanduser honor sudo and su users.
Fixes #9663
2014-12-03 10:46:56 -08:00
James Cammarata
f1386bb114 Use more variable sources when templating the play ds
Fixes #9699
2014-12-03 12:44:32 -06:00
Toshio Kuratomi
eeec4f73e7 Pull in doc fixes for modules 2014-12-03 08:18:39 -08:00
Toshio Kuratomi
05435f380b Update to newer core and extras modules 2014-12-03 07:17:43 -08:00
Brian Coca
61a30e5f49 better exception handling with delegated hosts 2014-12-03 07:26:42 -05:00
Devin Christensen
8130ed8de0 Allow .gitkeep in the jsonfile fact cache dir 2014-12-02 22:34:58 -07:00
Chris Church
2bf269568b Merge pull request #9688 from cchurch/fix_win_fetch
Fixes for fetch module when connecting to Windows hosts
2014-12-02 15:15:06 -05:00
Brian Coca
84bcc6a123 Merge pull request #9685 from bcoca/plugin_load_precedence
changed plugin load priority to be path based, not suffix based.
2014-12-02 14:45:39 -05:00
James Cammarata
29d41bb789 Revise patch from earlier using even more variable sources for HostVars
Superceeds e61e8a3

Fixes #9684
2014-12-01 21:44:42 -06:00
Chris Church
de267b5655 Fix PowerShell plugin issues affecting fetch module when used against Windows hosts. 2014-12-01 22:18:35 -05:00
Brian Coca
f2b853f7a0 changed plugin load priority to be path based, not suffix based. 2014-12-01 17:36:57 -05:00
James Cammarata
6570a6c6de Use additional vars when templating included file names
Fixes #9669
2014-12-01 15:00:14 -06:00
Toshio Kuratomi
86b21a1b8d Integration tests for https://github.com/ansible/ansible-modules-core/issues/416 2014-12-01 10:46:22 -08:00
James Cammarata
e61e8a37f5 Use extra vars when creating HostVars
Fixes #9667
2014-12-01 11:51:09 -06:00
Brian Coca
60b51ef6c3 Merge pull request #9646 from bcoca/listify_template_fixes
fine tuned lookup/templating errors
2014-11-26 22:20:33 -05:00
Brian Coca
9a5cbf747a fine tuned lookup/templating errors 2014-11-26 22:06:37 -05:00
Toshio Kuratomi
ae054dbc40 Pull in a fix for specifying a single role attribute for postgresql users 2014-11-26 14:46:45 -08:00
Toshio Kuratomi
0752549f02 Merge pull request #9640 from hkariti/premature_template_playbook_vars
Don't template play vars by themselves, it's too early
2014-11-26 10:54:29 -08:00
Toshio Kuratomi
4afa7ca1b1 Refresh the core modules to pull in mysql fix 2014-11-26 08:35:32 -08:00
Hagai Kariti
bc505050b0 Don't template play vars by themselves, it's too early 2014-11-26 15:45:38 +02:00
Toshio Kuratomi
704f7d7b40 Fix for a traceback in the git module 2014-11-25 16:23:12 -08:00
Toshio Kuratomi
b992a18378 Really update to a newer core module version :-) 2014-11-25 15:35:16 -08:00
James Cammarata
75d05168e6 Bumping files for 1.9 2014-11-25 16:49:45 -06:00
Brian Coca
90a6c82d55 Merge pull request #9626 from bcoca/minor_template_fixes
fixes to template function
2014-11-25 16:35:46 -05:00
Brian Coca
db145a368d now only flattened ignores failonundefined cause of it's special need 2014-11-25 16:12:15 -05:00
James Cammarata
968c56d765 Expand playbook_dir in time for loading tasks
Fixes #9618
2014-11-25 13:01:08 -08:00
Brian Coca
e3feb104c3 fixes issues with listyfing failing too often 2014-11-25 15:55:53 -05:00
Brian Coca
7d2937b1cc minor fixes to template function
- make sure it calls itself correctly, now passes same params as it recieves
- vars is reserved, changed for templatevars to avoid confustion
- forcing mustaches again since the removal broke 'listification' as per #9622
- fixes incorrectly successful tests using undefined var, now it is defined
- now returns empty list if items is None to avoid errors
2014-11-25 12:59:13 -05:00
Toshio Kuratomi
9a77aefc33 Special case the lone asterisk fragment in mysql 2014-11-25 08:06:15 -08:00
Toshio Kuratomi
199d6c0b8b Fix some problems with the generic quote char 2014-11-25 02:30:32 -08:00
Toshio Kuratomi
8e7447962e Update the modules to pull in mysql identifier escaping 2014-11-25 01:47:30 -08:00
Toshio Kuratomi
fcf0975c90 Fix a few mysql related typos 2014-11-25 01:47:07 -08:00
Toshio Kuratomi
0287e9a23d Normalize the identifier quoting so we can reuse the functions for mysql 2014-11-25 00:45:59 -08:00
Toshio Kuratomi
19606afe5f Update postgresql modules so that we get all the quoting of identifier
fixes
2014-11-24 22:57:41 -08:00
Toshio Kuratomi
64a8ad9a21 Remove debugging code 2014-11-24 21:02:24 -08:00
Toshio Kuratomi
067112b5ee Code for modules to perform more robust quoting of database identifiers 2014-11-24 20:55:44 -08:00
Kishin Yagami
ac4dc1f739 enable environment keyword at play level 2014-11-22 10:41:13 +09:00
Brian Coca
5e33db3b7e Merge pull request #9573 from bcoca/jsonfile_cache
a cache plugin that stores facts persistently in local json dumps
2014-11-20 16:34:47 -05:00
Toshio Kuratomi
f6f02c93e7 Update to HEAD of hte modules 2014-11-20 13:23:46 -08:00
James Cammarata
4b6b58ab11 Fix role parameter precedence after 9a0f8f0
Fixes #9497
2014-11-20 12:53:48 -06:00
Brian Coca
0edaa6f790 Merge pull request #9270 from bcoca/do_the_shuffle
added new 'shuffle' filter
2014-11-20 13:43:00 -05:00
Toshio Kuratomi
11b634104f Small fix to hardlink handling in file module 2014-11-19 13:05:11 -08:00
Toshio Kuratomi
554858f3af Update core modules to pull in a git module fix 2014-11-19 12:31:38 -08:00
Toshio Kuratomi
c4c3cc315d Transform both values of a task name into a byte str prior to comparing
Fixes #9571
2014-11-19 11:50:02 -08:00
Michael DeHaan
36401fdb97 Update git submodules. 2014-11-18 17:22:58 -05:00
Michael DeHaan
f8ca975c75 The Guru program has been folded in with Ansible Tower. Have
questions or interested in Ansible support?  We'd love to hear from you.
Email us at info@ansible.com.
2014-11-18 17:20:53 -05:00
Toshio Kuratomi
0defe19c4b Update core modules for apt fix 2014-11-18 13:11:33 -08:00
Brian Coca
91b0149c52 a cache plugin that stores facts persistently in local json dumps 2014-11-18 01:05:40 -05:00
Toshio Kuratomi
25607e5cf4 When run in FIPS mode, allow vault to fail only when using legacy format 2014-11-17 16:38:56 -08:00
James Cammarata
9a0f8f0158 Split out various vars-related things to avoid merging too early
Fixes #9498
2014-11-17 15:31:55 -06:00
Michael DeHaan
2c520655ae Merge pull request #9452 from erjohnso/google_endpoint_provider
Google: allow for different libcloud provider to support upcoming DNS mo...
2014-11-17 06:57:56 -08:00
Toshio Kuratomi
c3c6a07e65 Update apt test for newer version of test package and pull in an apt module fix 2014-11-14 10:02:21 -08:00
Toshio Kuratomi
b95475c1f9 Unittest the get_split_image_tag function in the docker module 2014-11-14 08:48:21 -08:00