summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils
Commit message (Collapse)AuthorAgeFilesLines
* added new selinux fact to clarify python libBrian Coca2017-05-251-0/+2
| | | | | | the selinux fact is boolean false when the library is not installed, a dictionary/hash otherwise, but this is ambigous added new fact so we can eventually remove the type dichtomy and normalize it as a dict
* Misc Typo correction (#25025)Abhijeet Kasurde2017-05-251-1/+1
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Docker does not output Status after pull anymore.Konrad Klimaszewski2017-05-241-5/+4
| | | | | - Docker 1.12 on CemtoOS7 does not output status line anymore. - Do not rely on Docker output to verify if the image was the latest.
* Solaris fact fix (#24793)Brian Coca2017-05-241-0/+1
| | | | | | | | | * ensure locale for solaris fact gathering fixes issue with locale interfering with proper reading of decimals fixes #24542 * fixed typoe
* Add eos changes for Python3 (#24600)Ganesh Nalawade2017-05-241-22/+30
| | | | | | | | | | | | | | | | * eos python3 changes * changes to convert response from byte to text * Add dellos6 python3 changes Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 * Fix py3 prompt issue for invalid show command * Fix review comments * Add generic fix for error prompt in py3 * Fix CI issue * Fix network_cli unit test failure
* Fix typos in eos module_utils (#24966)Abhijeet Kasurde2017-05-241-3/+3
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* module_utils/six: PEP8 compliancyDag Wieers2017-05-231-3/+0
| | | | - Make PEP8 compliant
* only set executable from shell if not set alreadyBrian Coca2017-05-221-2/+3
|
* enable run_command to use non /bin/sh shellsBrian Coca2017-05-221-9/+17
| | | | fixes #24169
* Remove deprecation for username/password eos_user, nxos_user and Doc update ↵Trishna Guha2017-05-222-5/+15
| | | | | (#24880) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add nxos changes for Python3 (#24602)Ganesh Nalawade2017-05-201-17/+29
| | | | | | | | | | | | | | | | * Add nxos changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 * Fix CI issues * Fix review comment Replace surrogate_or_strict with surrogate_then_replace as per review comment os PR #24601
* [GCP] remove ansible.utils.display for deprecations (#24738)Tom Melendez2017-05-181-15/+8
| | | | | | * [GCP] remove ansible.utils.display for deprecations, use module.deprecate instead. * removed test file from legacy files
* Fix transport getting set to None when not set explicitly (#24769)Trishna Guha2017-05-181-0/+1
| | | Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Save commit_timeout as string in junos_config (#24761)Abhijeet Kasurde2017-05-181-1/+1
| | | | | | | | Fix converts commit_timeout to string as Elementree.SubElement requires text as string. Fixes #24611 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Contributing new lib/ansible/module_utils/ce.py module to manage HUAWEI data ↵QijunPan2017-05-171-0/+445
| | | | | | | | | | | | | | | | center CloudEngine switch (#21666) * add module_utils ce.py add module_utils ce.py * update module_utils/ce.py to support netconf update module_utils/ce.py to support netconf * update module_utils ce.py update module_utils ce.py
* Add ios changes for Python3 (#24601)Ganesh Nalawade2017-05-171-8/+14
| | | | | | | | | | | | | * Add ios changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 pep8 fixes * Fix CI issues * Fix review comment
* Add dellos9 changes for Python3 (#24607)Ganesh Nalawade2017-05-171-6/+7
| | | | | | | | | | * Add dellos9 changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 * Minor changes
* Add dellos6 changes for Python3 (#24606)Ganesh Nalawade2017-05-171-6/+7
| | | | | Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431
* Add dellos10 changes for python3 (#24608)Ganesh Nalawade2017-05-171-6/+7
| | | | | Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431
* Add sros changes for Python3 (#24604)Ganesh Nalawade2017-05-171-32/+14
| | | | | | | | | | | | | * Add sros changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 Code cleanup pep8 fixes * Fix CI issue
* Add vyos changes for Python3 (#24603)Ganesh Nalawade2017-05-171-8/+13
| | | | | | | | | | | * Add vyos changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 pep8 fixes * Fix CI issues
* Add iosxr changes for Python3 (#24605)Ganesh Nalawade2017-05-171-9/+12
| | | | | | | | | | * Add iosxr changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 * Fix CI issue
* vmware_guest: Fix VM creation when adding a network device without a MAC ↵Lemar Carthens2017-05-161-2/+8
| | | | | | | | address (#24138) * vmware_guest: Fix VM creation when adding a network device without a MAC address * Provide python2.4 compatibility
* module_utils/rax: Small parameter cleanup (#24664)Dag Wieers2017-05-161-2/+2
| | | | | | Nothing really fancy. - Removing boolean choices - Use path-type for credentials
* module_utils/asa: PEP8 compliancy (#24655)Dag Wieers2017-05-161-1/+1
| | | - Make PEP8 compliant
* Fix UnboundLocalError in basic.pyAbhijeet Kasurde2017-05-151-1/+1
| | | | | | | | | | * Fix for UnboundLocalError while accessing deprecations in result * Add Unit test Fixes #24592 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* cloudstack: return known used resources in fail_json (#24575)René Moser2017-05-131-24/+34
|
* Be explicit about pickle protocol and encoding (#24454)Toshio Kuratomi2017-05-121-3/+6
| | | | | | | | | | | | | | | | | On Python3 and Python2 use pickle slightly differently so we need to be explicit about some things. If pickles could be shared between python2 and python3, as in ansible-connection and the pickle cache, we need to specify the protocol to use when dumping and the encoding to use for byte strings when loading. The dumping protocol needs to be no higher than 2 as python-2 only supports up to protocol 2. The encoding should usually be 'bytes' so that python2 str type becomes python3 bytes type. However, doing this means that we must make sure that the objects being serialized properly make their strings into text strings except when they're supposed to be bytes. If strings are improperly byte strings, they may cause tracebacks on the receiving end
* Add check for processor_core valueAbhijeet Kasurde2017-05-121-1/+1
| | | | | | Fixes #21893 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* [GCE] [GCP] UrlMap module (#24422)Tom Melendez2017-05-111-15/+430
| | | | | | | | | | | | | | | | | | | | | | | * [GCP] UrlMap module This module provides support for UrlMaps on Google Cloud Platform. UrlMaps allow users to segment requests by hostname and path and direct those requests to Backend Services. UrlMaps are a powerful and necessary part of HTTP(S) Global Load Balancing on Google Cloud Platform. UrlMap takes advantage of the python-api so the appropriate infrastructure has been added to module_utils. More about UrlMaps can be found at: https://cloud.google.com/compute/docs/load-balancing/http/url-map UrlMap API: https://cloud.google.com/compute/docs/reference/latest/ Google Cloud Platform HTTP(S) Cross-Region Load Balancer: https://cloud.google.com/compute/docs/load-balancing/http/ * updated documentation, remmoved parens * fixed tabs
* Feature/aws helper function for tags (#23387)Rob2017-05-111-7/+35
| | | | | | | | * Add new helper function for comparing AWS tag key pair dicts. Also modify boto3_tag_list_to_ansible_dict function to be more generic when looking for key names because AWS sometimes uses 'Key', sometimes 'TagKey' and who knows what the future holds! Fixed modules to work with changes. * Review changes * Add some more doc to GUIDELINES for tags and fix var name for snaked values in ec2_group_facts
* Windows: Small fix to Add-Warning and Add-DeprecationWarning (#23520)Dag Wieers2017-05-091-50/+44
| | | | | | | Simplified the logic, and fix the issue of having a nested list as entry. Also indicate that we deliberately want to retain $null values (and i.e. do not want them to be turned into a boolean).
* Fortios file only mode + integration tests (#23275)Benjamin Jolivot2017-05-091-36/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP file_mode * WIP * Add file_mode + integration tests * fix pep8 * Update doc fragments Create mutualy_exclusive param Fix yamllint problem in tests * Add aliases file + main playbook for fortios * Install pyfg before running tests * Install pyfg before running tests in role * Remove pre_task as it's done in roles * Force pyFG minimal version for python3 * role_path not role_dir :( * Change requirements * Specify Error type when error on import * Bug in pygf library with python 2.5 (PR is waiting https://github.com/spotify/pyfg/pull/19) * Bad requirement format * still bad format -_-' * remove test/integration/fortios.py (auto generated by tests) missing new lines at end of file * pyFG is now fixed in 0.50
* Python 3 fixes for CloudStack modules and tests. (#24400)Matt Clay2017-05-091-7/+17
|
* powershell: Add support for list parameters (#23131)Dag Wieers2017-05-081-0/+9
| | | | | This is a first implementation of list parameters. It will convert a single string, or comma-separated value into an Array.
* nxos_bgp updates (#24270)Nathaniel Case2017-05-081-0/+6
| | | | | | | | * Remove invoke from nxos_bgp * Try to simplify get_existing * Streamline state_present * More testing, squash & compact get_value & get_custom_value * Streamline main * nxapi has problems reading CustomNetworkConfig directly
* Give user whatever information we have from ssh-keyscanToshio Kuratomi2017-05-051-2/+12
| | | | | | | | ssh-keyscan isn't very verbose about errors. Give the user whatever information we have available even if it isn't much. At least they will know how we were running ssh-keyscan and why there's an error now. Fixes #19440
* fixed issue with multiple calls to Add-DeprecationWarningMatt Davis2017-05-031-2/+2
|
* Fix error in unittestingToshio Kuratomi2017-05-031-4/+3
| | | | | | When unittesting, the framework creates a pipes module that is picked up by the basic module_utils test. Switch to using shlex_quote as that is the right thing to use for portability anyway.
* Fix places where path needs to be bytes on python3Toshio Kuratomi2017-05-031-4/+12
| | | | | These were discovered on python3 with fetch code that fails on errors. Probably could be provoked with particular sets of arguments to stat as well.
* Avi 17 1 (#24047)Gaurav Rastogi2017-05-031-2/+3
| | | | | | | | | | * Added new common argument api_version for all Avi modules * Updated dependency for the new modules to use avi sdk 17.1 and above * Updated Avi 17.1.1 modules with descriptions and moddule dependencies * Updated version_added for new options
* Allow empty string for EC2 session token from env.Matt Clay2017-05-031-1/+2
|
* Facts Timeout was not settable via ansible.cfgToshio Kuratomi2017-05-011-6/+8
| | | | | | | | | | | | | | | | | | | The timeout for gathering facts needs to be settable from three places (highest precedence to lowest): * programmatically * ansible.cfg (equivalent to the user specifying it explicitly when calling setup) * from the default value The code was changed in b4bd6c80deccc64655e158cf4799edcf604c76d1 to allow programmatically and the default value to work correctly but setting via ansible.cfg/parameter was broken. This change should fix setting via ansible.cfg and adds unittests for all three cases Fixes #23753
* Update documentation of fetch_url in urls.py (#23892)Abhijeet Kasurde2017-05-011-3/+4
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fix ClearLinux pretty nameAlberto Murillo Silva2017-05-011-1/+1
| | | | | | | | | | | ClearLinux has changed its pretty name in os-release file from: 'Clear Linux Software for Intel Architecture' to: 'Clear Linux OS for Intel Architecture' This patch makes the SEARCH_STRING 'Clear Linux' rather than the full name to make it compatible with the old and new name. Signed-off-by: Alberto Murillo Silva <alberto.murillo.silva@intel.com>
* Junos_config unicode (#23369)Nathaniel Case2017-04-271-3/+3
| | | | | | | | * Try to handle unicode output more sensibly * Appears I'm getting latin1 instead Ugh.
* Fixed PEP8 issues (#24030)Senthil Kumar Ganesan2017-04-272-4/+8
|
* asa_command: set default_output to text (#23979)Patrick Ogenstad2017-04-261-0/+2
|
* Fixes #23960 junos_config fail with config in xml (#23962)Ganesh Nalawade2017-04-251-3/+5
| | | | If config is in xml format append it to <configuration> tag as a instance of Element class.
* Remove repetition of code nxos (#23908)Trishna Guha2017-04-251-3/+1
| | | Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>