summaryrefslogtreecommitdiff
path: root/hacking
Commit message (Collapse)AuthorAgeFilesLines
* Fish hacking setup fix (#18084)Sam Doran2016-10-241-10/+9
| | | | | | | | | | | | | | | | | | | * Remove old egg-info files before creating new ones Currently, setup.py generates egg files then they are deleted. This change fixes this behavior and matches that in env-setup. * Do not try to move ansible*egg-info to lib/ setup.py creates the ansible.egg-info in lib/ so this step is unnecessary. Matches env-setup behavior. * Better test for number of arguments in argv This prevents an erronous error message from being thrown since set -q returns an error code with the number of variables not defined, resulting in a non-zero exit if no arguments are passed. Indent case statement within switch statement. (cherry picked from commit cf8639ff6286e9ba1bdc67777ca78037fdde0d8d)
* test-module _ansible_selinux_special_fs arg addedAdrian Likins2016-10-241-0/+4
| | | | | | | modules need to have _ansible_selinux_special_fs passed in as an arg, so add the default to the args. (cherry picked from commit cf39a1abab750c907451f8ac94e94136527af6d4)
* gen_distribution_version_testcase.py should fail if ansible run fails (#17693)cinerama702016-09-261-1/+10
| | | | | | Currently, "ansible localhost -m setup" can fail silently during the run of gen_distribution_version_testcase.py, resulting in incorrect output. Use check_output() rather than communicate() and handle the exception if we get a nonzero return value.
* Add os_family to test_distribution_version (#17620)cinerama702016-09-171-1/+1
| | | | | | | | | | | As suggested in feedback on https://github.com/ansible/ansible/pull/17575, add os_family to test_distribution_version. Add the correct os_family to the existing testcase data entries. Also add os_family to the output of gen_distribution_version_testcase.py so any new generated entries will contain this data.
* Move uses of to_bytes, to_text, to_native to use the module_utils version ↵Toshio Kuratomi2016-09-061-2/+3
| | | | | | | | (#17423) We couldn't copy to_unicode, to_bytes, to_str into module_utils because of licensing. So once created it we had two sets of functions that did the same things but had different implementations. To remedy that, this change removes the ansible.utils.unicode versions of those functions.
* Add detection of python3 to hacking/env-setup (#17357)Michael Scherer2016-09-021-2/+5
| | | People can still override the detection using PYTHON_BIN
* Merge pull request #16316 from alikins/alikins_docsite_makescottb2016-08-191-1/+1
|\ | | | | Fewer deps for 'make webdocs' from top level
| * Fewer deps for 'make webdocs' from top levelAdrian Likins2016-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | Previously it also built the MANPAGES target requiring asciidoc and libxml, before starting a 'make docs' in docsite. Also change the #! line in hacking/dump_playbook_attributes.py to not specify python2... yet.
* | force deletion of .pyc files (#17109)Josh Smift2016-08-171-2/+2
| |
* | tweak hacking/env-setup to work under ash (#17054)Matt Davis2016-08-111-2/+2
| |
* | Find places where ziploader is used and change them to ansiballz so that ↵Toshio Kuratomi2016-07-211-11/+11
|/ | | | people aren't confused when they google for information.information (#16715)
* Do not corrupt $MANPATH when it's not present (#16300)André Pinto2016-06-151-1/+1
| | | Fixes #16299
* Make 'required' optional in module docs (#15906)Matt Davis2016-05-181-2/+4
| | | Updated module dev docs, doc build, ansible-doc to match
* quick yaml syntax checkerBrian Coca2016-05-181-0/+16
|
* typo fixBrian Coca2016-05-051-1/+1
|
* enforce required 'required' in docsBrian Coca2016-05-051-0/+2
|
* Dist version fix for Red Hat and more tests (#15663)Robin Roth2016-04-291-2/+5
| | | | | | | | | | | | * add tests for centos6, rhel6 and rhel7 * gen_distribution_version_testcase with python2.6 * remove unused imports * fix redhat/vmware/... parsing * add centos7 test case
* Make -q flag totally quiet for env-setup.fishBrett Inman2016-04-271-20/+32
| | | The first echo and setup.py steps are not quiet and result in output that is annoying if your Fish is configured to source the file.
* Remove the duplicate modstyle parameterToshio Kuratomi2016-04-271-1/+1
|
* Have test-module clean up the local temp dir when it exitsToshio Kuratomi2016-04-241-12/+44
| | | | Get test-module's debugger switch to do something useful with ziploader modules
* Merge pull request #15420 from robinro/distribution_version_testsToshio Kuratomi2016-04-181-0/+65
|\ | | | | Distribution version tests
| * move gen_testcase to hacking/testsRobin Roth2016-04-151-0/+65
| | | | | | | | * also use json instead of pprint
* | Cleanup. Since we no longer pass a lock, we no longer need to create itToshio Kuratomi2016-04-141-2/+0
|/
* We switched away from passing the lock via the arguments to modify_moduleToshio Kuratomi2016-04-131-1/+0
| | | | Need to fix test-module to not pass the lock either
* Controller-side module caching.Toshio Kuratomi2016-04-121-2/+6
| | | | | | | | | This makes our recursive, ast.parse performance measures as fast as pre-ziploader baseline. Since this unittest isn't testing that the returned module data is correct we don't need to worry about os.rename not having any module data. Should devise a separate test for the module and caching code
* Fixes to the documentation build (#15356)Toshio Kuratomi2016-04-111-80/+98
| | | | | | | | | | | | | | | | * Could only have one alias before. Subsequent aliases overrode the previous ones. Now multiple aliases work. * Fix BLACKLISTED_MODULES. Previously, modules were listed in the generated documentation despite being blacklisted * Deprecated modules form extras were showing the (E) tag and not the (D) tag. Reversed that now (Probably not necessary to also show the E tag). * Sort the deprecated modules alphabetically in the Category docs as well as the list of all modules * Optimization: Previously rendered the modules to rst twice once in all group and once in individual categories. Fixed to only render them once. * Add fireball to blacklist and remove async_status (as people need to use that).
* Python2.6 fix for test-moduleToshio Kuratomi2016-04-111-1/+1
|
* ZiploaderToshio Kuratomi2016-04-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ziploader proof of concept (jimi-c) * Cleanups to proof of concept ziploader branch: * python3 compatible base64 encoding * zipfile compression (still need to enable toggling this off for systems without zlib support in python) * Allow non-wildcard imports (still need to make this recusrsive so that we can have module_utils code that imports other module_utils code.) * Better tracebacks: module filename is kept and module_utils directory is kept so that tracebacks show the real filenames that the errors appear in. * Make sure we import modules that are used into the module_utils files that they are used in. * Set ansible version in a more pythonic way for ziploader than we were doing in module replacer * Make it possible to set the module compression as an inventory var This may be necessary on systems where python has been compiled without zlib compression. * Refactoring of module_common code: * module replacer only replaces values that make sense for that type of file (example: don't attempt to replace python imports if we're in a powershell module). * Implement configurable shebang support for ziploader wrapper * Implement client-side constants (for SELINUX_SPECIAL_FS and SYSLOG) via environment variable. * Remove strip_comments param as we're never going to use it (ruins line numbering) * Don't repeat ourselves about detecting REPLACER * Add an easy way to debug * Port test-module to the ziploader-aware modify_module() * strip comments and blank lines from the wrapper so we send less over the wire. * Comments cleanup * Remember to output write the module line itself in powershell modules * for line in lines strips the newlines so we have to add them back in
* avoid private attributesBrian Coca2016-03-101-4/+2
| | | | hardcode adding with_ for tasks
* fixed typoBrian Coca2016-02-291-1/+1
|
* added missing :Brian Coca2016-02-261-1/+1
|
* fixes to playbooks_directives generationBrian Coca2016-02-262-9/+25
| | | | | | order is now predictable now correctly substitutes loop for with_ adds local_action to action
* avoid printing internal loop and loop_argsBrian Coca2016-02-251-0/+2
|
* now generate list of playbook ojbect directivesBrian Coca2016-02-252-0/+52
| | | | TODO: needs links/info and conditionals added
* clarify that requirements are on host that runs itBrian Coca2016-02-181-2/+2
| | | | fixes http://github.com/ansible/ansible-modules-core/issues/3061
* now check for description and listify if neededBrian Coca2016-02-081-6/+5
| | | | fixes #14371
* Handle utf-8 in module short descToshio Kuratomi2016-02-021-1/+2
|
* Make "make webdocs" compatible with Python 3Jeremy Audet2015-12-081-2/+2
| | | | | | The `webdocs` make target fails under Python 3. It fails due to a variety of syntax errors, such as the use of `except Foo, e` and `print 'foo'`. Fix #13463 by making code compatible with both Python 2 and 3.
* Replace -delete with portable -exec rm {} \;Patrik Lundin2015-12-021-2/+2
| | | | Needed on OpenBSD which does not support -delete.
* Update check mode argumentAlberto Gireud2015-11-081-1/+1
|
* force egg deletionBrian Coca2015-11-021-1/+1
|
* added a skip for the test dir in module reposBrian Coca2015-10-271-0/+4
|
* Break apart a looped dependency to show a warning when parsing playbooksToshio Kuratomi2015-10-271-1/+1
| | | | | Display a warning when a dict key is overwritten by pyyaml Fixes #12888
* Bundle a new version of python-six for compatibility along with some code to ↵six-compatToshio Kuratomi2015-10-161-0/+34
| | | | make it easy for distributions to override the bunndled copy if they have a new enough version.
* better error catching for doc buildBrian Coca2015-10-131-1/+5
|
* Tweak to hacking path fix to go back to subshell useJames Cammarata2015-09-171-1/+1
|
* Allow env-setup to use spaces in full pathEC2015-09-171-1/+1
|
* Replace .iteritems() with six.iteritems()Marius Gedminas2015-09-031-1/+2
| | | | | | | Replace .iteritems() with six.iteritems() everywhere except in module_utils (because there's no 'six' on the remote host). And except in lib/ansible/galaxy/data/metadata_template.j2, because I'm not sure six is available there.
* Use find ... -delete instead of non-portable globbingLuke Rohde2015-09-022-3/+3
|
* Delete all compiled python files when running hacking/env-setupLuke Rohde2015-09-022-0/+3
|