1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Find a file
willthames 9d87733f98 Test case and fix for shlex.split unicode bug
When operating on a unicode string in python 2.6, shlex.split returns
a result that does not work with the file constructor.

To reproduce this requires a task include that is templated (this is
because the templated string is a unicode result, whereas a non-
templated string is a non-unicode string)

    [will@centos6.3] $ python
    Python 2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
    [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import shlex
    >>> shlex.split(u'abc')
    ['a\x00\x00\x00b\x00\x00\x00c\x00\x00\x00']

    [will@fedora17] $ python
    Python 2.7.3 (default, Jul 24 2012, 10:05:38)
    [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import shlex
    >>> shlex.split(u'abc')
    ['abc']

The proposed fix (coercing the include parameters to string before the
shlex.split) may not be ideal but it does fix the bug for my test case.
2013-04-08 14:47:43 +10:00
bin Change the retry logic to write a limit file, able to source limit from files by indicating with @filename 2013-04-08 12:36:01 -04:00
docs/man Update release version. 2013-04-02 20:48:30 -04:00
docsite Improved Lookup plugins documentation 2013-04-05 20:00:23 +03:00
examples Loose tasks not in roles get executed after roles. 2013-04-06 18:36:25 -04:00
hacking Fixed option validation error 2013-03-29 16:30:33 +01:00
lib/ansible Test case and fix for shlex.split unicode bug 2013-04-08 14:47:43 +10:00
library Enable virt module to work with different libvirt connection uris. This allow to work with all libvirt supported VMs. 2013-04-08 22:14:37 +02:00
packaging added missing build deps for debian/ubuntu to readme 2013-04-03 12:27:18 -04:00
plugins Initial commit of rax inventory plugin 2013-03-30 23:04:07 -07:00
test Test case and fix for shlex.split unicode bug 2013-04-08 14:47:43 +10:00
.gitignore add authors file to gitignore since it was removed from version control 2013-03-26 08:14:07 +01:00
CHANGELOG.md Update changelog 2013-04-08 12:39:00 -04:00
CONTRIBUTING.md Add a line about testing. 2013-02-23 12:41:00 -05:00
COPYING license file should be in source tree 2012-03-15 20:24:22 -04:00
Makefile add clean up authors file to make clean 2013-03-26 08:19:45 +01:00
MANIFEST.in Add some docs/examples 2012-08-14 13:05:44 -04:00
README.md Update README.md 2013-04-06 17:22:21 -03:00
RELEASES.txt Fix up some version related things on the devel branch. 2013-02-01 21:38:21 -05:00
setup.py CLI: ansible-doc shows lists of modules & module docs on command-line 2012-11-30 21:57:25 -05:00
VERSION Update release version. 2013-04-02 20:48:30 -04:00

Ansible

Ansible is a radically simple configuration-management, deployment, task-execution, and multinode orchestration framework.

Read the documentation and more at http://ansible.cc

Many users run straight from the development branch (it's generally fine to do so), but you might also wish to consume a release. You can find instructions on http://ansible.cc/docs/gettingstarted.html for a variety of platforms. If you want a tarball of the last release, go to http://ansible.cc/releases/ and you can also install with pip (though that will bring in some optional binary dependencies you normally do not need).

Design Principles

  • Dead simple setup
  • Super fast & parallel by default
  • No server or client daemons; use existing SSHd
  • No additional software required on client boxes
  • Modules can be written in ANY language
  • Awesome API for creating very powerful distributed scripts
  • Be usable as non-root
  • The easiest config management system to use, ever.

Get Involved

Branch Info

  • Releases are named after Van Halen songs.
  • The devel branch corresponds to the release actively under development.
  • Various release-X.Y branches exist for previous releases
  • We'd love to have your contributions, read "CONTRIBUTING.md" for process notes.

Author

Michael DeHaan -- michael@ansibleworks.com

AnsibleWorks