No description
Find a file
Stefan Hajnoczi 47cc422b8a Stream image data in load_image() to avoid out-of-memory
Reading the entire tar file into memory can result in out-of-memory
conditions such as this traceback:

Traceback (most recent call last):
  File "/tmp/ansible_YELTSu/ansible_module_docker_image.py", line 486, in load_image
    self.client.load_image(image_data)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/image.py", line 147, in load_image
    res = self._post(self._url("/images/load"), data=data)
  ...
  File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 848, in _send_output
    msg += message_body
MemoryError

Luckily docker-py's load_image(), which calls requests post(), accepts a
file-like object instead of a string.  Pass in the file object to avoid
reading the full file into memory.  This allows larger tar files to load
succesfully.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
2016-06-08 23:50:44 +01:00
.github Update the issue and pull-request templates in sync with ansible/ansible 2016-03-23 15:59:17 +01:00
cloud Stream image data in load_image() to avoid out-of-memory 2016-06-08 23:50:44 +01:00
commands command: Correct suggestion of non-existant module apt-get 2016-05-01 11:02:57 +02:00
database Removing double definition in postgresql_user module (#3714) 2016-05-24 14:47:50 +02:00
files Fix grammar in docs for fetch 'fail_on_missing' (#3872) 2016-06-06 15:27:18 -04:00
inventory Add missing GPLv3 License header 2015-07-03 22:57:53 -05:00
network Fix the six import 2016-06-04 10:49:13 -07:00
packaging apt: fix deb=file with --diff does not show diff on upgrades (#3826) 2016-06-01 23:38:00 +02:00
source_control Improve error reporting when git binary fail (#3266) 2016-05-20 09:45:53 -07:00
system Fixed Typo in Examples of systemd module (#3870) 2016-06-06 13:50:47 -04:00
test/unit/cloud/openstack add some unit tests for the os_server module 2015-10-16 21:03:50 -04:00
utilities Fix wait_for to compile on python3 (#3722) 2016-05-23 09:34:27 -04:00
web_infrastructure Port htpasswd to python3 compatible syntax (#3672) 2016-05-17 10:17:24 -07:00
windows Return reboot pending as true/false 2016-06-06 23:32:33 +02:00
.gitignore Add basic top level files. 2014-09-26 09:21:20 -04:00
.travis.yml Remove rackspace modules from travis py3 blacklist as they should now compile 2016-06-03 06:59:15 -07:00
__init__.py package files 2014-09-26 11:05:47 -04:00
CONTRIBUTING.md point to local issue temmplate 2016-02-18 09:28:47 -08:00
COPYING Add basic top level files. 2014-09-26 09:21:20 -04:00
README.md readme: add build state image from travis 2016-04-29 10:52:17 +02:00
test-docs.sh Add testing of docs to the core repo 2015-06-29 12:42:50 -07:00
test-requirements.txt add some unit tests for the os_server module 2015-10-16 21:03:50 -04:00
VERSION Version bump for new beta 2.0.0-0.5.beta3 2015-11-13 16:46:32 -05:00

Build Status

ansible-modules-core

This repo contains Ansible's most popular modules that are shipped with Ansible.

New module submissions for modules that do not yet exist should be submitted to ansible-modules-extras, rather than this repo.

Take care to submit tickets to the appropriate repo where modules are contained. The docs.ansible.com website indicates this at the bottom of each module documentation page.

Reporting bugs

Take care to submit tickets to the appropriate repo where modules are contained. The repo is mentioned at the bottom of module documentation page at docs.ansible.com.

Testing modules

Ansible module development guide contains the latest info about that.

License

As with Ansible, modules distributed with Ansible are GPLv3 licensed. User generated modules not part of this project can be of any license.

Installation

There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.