Commit Graph

10545 Commits (c60954605b00f188e2b86c5a957ab177abd887e5)

Author SHA1 Message Date
Javier M. Mellid 6346cad9d0 Add proper version_added for rgw option in s3.py
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
8 years ago
Javier M. Mellid 0b156aae16 Add Ceph RGW S3 compatibility
Ceph Object Gateway (Ceph RGW) is an object storage interface built on top of
librados to provide applications with a RESTful gateway to Ceph Storage
Clusters:

http://docs.ceph.com/docs/master/radosgw/

This patch adds the required bits to use the RGW S3 RESTful API properly.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
8 years ago
Stanislav Antic 4c92652e7b Fix wait_for on python < 2.6 (#3790) (#3973) 8 years ago
Brian Coca f595b27e47 reverted need for module utils imports 8 years ago
Brian Coca 0c82db9cda added missing import
readded raise
8 years ago
Brian Coca 51c3eda259 exception ans sys.exit fixes 8 years ago
Toshio Kuratomi 1b88df0bda Fix exception handling in async_wrapper 8 years ago
Keisuke Kamada 259c4b31fb Do not copy file if running on check mode 8 years ago
Adam Butler 0c7ec1e860 Fixes incorrect key name protocols -> protocol (#3963) 8 years ago
nitzmahone 363ff55445 StrictMode fixes for win_get_url 8 years ago
Brian Coca 1f6c3766b0 restored incorrectly removed docs, jinja2 override 8 years ago
Hagen Kuehn 320aea77c6 fixed unknown type <type 'list'> error (#3959) 8 years ago
Brano Zarnovican 9fd52ac40e Py2.4: SystemExit in async_wrapper is not an error - compatibility fix
Prior to Python 2.5, SystemExit was a subclass of Exception.
In Py2.4, this is causing extra error output on valid sys.exit(0).

(Toshio) Call sys.exit from inside of the SystemExit exception handler so py2.4 and py2.5+ behaviour matches
8 years ago
Brian Coca 079948eef0 updated raw docs for environment and executable
it should now reflect how raw works in combination with
become and environment directives
8 years ago
nitzmahone e7075f3e93 rename ansible_winrm_certificate_expires fact to avoid collision with connection vars 8 years ago
chouseknecht 16e7dc4e2e Remove dns from container create parameters. 8 years ago
chouseknecht 4d51a51ac3 Fix #3945 docker_container detach not waiting on container to execute. 8 years ago
Brian Coca 01490688f4 document that get_url also takes file params
has for a long time, but was never documented, mode,group, owner can all be set here
8 years ago
Brian Coca 34b94ec4c4 Revert "Add mode option to the list" (#3946) 8 years ago
Victor Bocharsky 6037684d23 Add mode option to docstring for get_url (#3630)
Add mode option to the list
8 years ago
Toshio Kuratomi 53a22ce93a Finish python3 syntax compilation fixing for core repo 8 years ago
@ c901b70a01 Fixing compile time errors irt (, e => as e, print(), ocat now 0o not 0) exception handling for Python 3 (#3851)
* Fixing compile time errors irt a) exception handling for Python 3 in util, also: b) problem octal usage (fixed) and c) print json_dump -> print(json_dump(xyz) ... et al

* This code was not Python 2.4 compliant. Octal codes and exception handling is now working with Py 2.4, 2.6, & 3.5.

* Fixing formating (or rather reverting an non 2.4 compatible change). Works in compile & runtime checking.

* a) revert to use print sys.stderr not fail_json; b) fixed var name in exception

* Python 3 compatible print (print >>sys.stderr will generate a TypeError - now uses sys.stderr.write instead).
8 years ago
chouseknecht 82436d5519 Fix #3941 8 years ago
Stefan Hajnoczi 7c4a469174 docker_service: make PyYAML requirement explicit
The "Developing Modules" documentation states:

  Include a minimum of dependencies if possible. If there are
  dependencies, document them at the top of the module file, and have
  the module raise JSON error messages when the import fails.

When docker_service runs on a remote host without PyYAML it crashes with
ImportError.

This patch raises a JSON error message when import fails, but only if
the PyYAML module is actually used.  It's only needed when the
"definition" parameter is given.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
8 years ago
chouseknecht 617c230b62 Fix #16211 - only stop/kill running containers 8 years ago
neo 07c8804486 fix unarchive doesn't extract changed tar file #3901 8 years ago
Chris Houseknecht b5820c7398 Fix #3906 - Enforce required minimum compose version. (#3925)
* Fix #3906 - Require minimum compose version.

* Fix typo in message text.
8 years ago
Matt Fischer a28b23db86 Update delete notes for Synrhconize docs (#3723)
The example for delete=yes does not specify recursive although it is
required. In addition, the wording for the delete option is confusing
about from where files are really deleted. This should clarify that.
8 years ago
Thomas Quinot 0bd32c3465 Clarify behaviour when state=present and no name is given (#3904) 8 years ago
Dag Wieers 9387c1b758 Update GitHub templates to reflect ansible/ansible (#3900)
* Update GitHub templates to reflect ansible/ansible

Update the GitHub templates to what is used for some time on ansible/ansible
For more information, see ansible/ansible#15961

* Small improvement from ansible/ansible
8 years ago
Dag Wieers 6bcf88ef54 Adapt module to use new module._name property (#3918)
This is in line with the change from ansible/ansible#16087
8 years ago
Dag Wieers c6fb3ceb85 Improve the unzip output scraping (#3819)
* Improve the unzip output scraping

Ensure we capture the complete file (also when it includes spaces).
Drop lines that do not conform (in length) to what we expect (e.g. header/footer).

This fixes #3813

* Fix how split() works
8 years ago
Bradley Phipps 17985f9917 added missing colons to documentation (#3913) 8 years ago
Toshio Kuratomi b259c65b20 Revert "Fix git shallow update (#3794)" -- Broke integration tests: https://app.shippable.com/runs/57599a7897ae890c00c2898d
This reverts commit c26eb1217f.
8 years ago
jctanner 48f096b52c Use the six import for urlsplit instead of importing directly. (#3902)
Fixes https://github.com/ansible/ansible/issues/16191
8 years ago
Robin Roth 513c3bf287 Fix git shallow update (#3794)
* remove unused variables

* fetch branch name instead of HEAD

fix #3782, which was introduced by f1bacc1d3f

* disable git depth option for old git versions

fixes #3782
git support for `--depth` did not fully work in old git versions (before 1.8.2)
fall back to full clones/fetches on those versions
8 years ago
Stefan Hajnoczi 38013de366 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>
8 years ago
Vince v. Oosten 42a38f9141 move environment variable gathering to end of __init__() (#3890)
* This moves the lines in the code that parse the `env` and `env_file` options for docker to the end of the `__init__()` function.
This is needed because the `_check_capabilites` function needs both a working `self.client` and a proper `self.docker_py_versioninfo`.
`_check_capabilities` is used by `ensure_capabilities` which is, in turn, used by `get_environment`

This means that before this commit, the environment variables could not be loaded because both `self.client` and `self.docker_py_versioninfo` were not set at that time.

This commit fixes that by putting the environment variable parsing after those two.

* This moves the lines in the code that parse the `env` and `env_file` options for docker to the end of the `__init__()` function.
This is needed because the `_check_capabilites` function needs both a working `self.client` and a proper `self.docker_py_versioninfo`.
`_check_capabilities` is used by `ensure_capabilities` which is, in turn, used by `get_environment`

This means that before this commit, the environment variables could not be loaded because both `self.client` and `self.docker_py_versioninfo` were not set at that time.

This commit fixes that by putting the environment variable parsing after those two.
8 years ago
Matt Davis 81e7720f62 Iam trust policy (#3885)
* added support for trust policies

* added version_added to new params in DOC string

* update version_added on new iam args to 2.2
8 years ago
Peter Sprygada d8cb09a121 removes requirement for config argument to be specified in junos_facts
The config argument is optional and should not be required.  This
removes the required attribute from the config argument.

fixes #3878
8 years ago
Trond Hindenes 7747be71b4 Return reboot pending as true/false 8 years ago
mansunkuo be6ce922a6 Add an example to delete Route53 alias record set (#3834) 8 years ago
Brendan Jurd c5fbda395b Fix grammar in docs for fetch 'fail_on_missing' (#3872) 8 years ago
Robin Naundorf 03515fc26c Fixed Typo in Examples of systemd module (#3870) 8 years ago
Brian Coca 03f06ca2e8 fixed issue with multiline output from systemd
fixes #3868
8 years ago
Mike Mars eb4813f1ca a) fail_json uses kwargs, b) outside the fork, log instead of returning json on stdout. 8 years ago
Mike Mars 1426a99cc0 data type fix on format string 8 years ago
Mike Mars a406ec30df corrected the string formatting (format isn't in 2.4 and even in some later versions of python 2.x requires an index). Tested for both compile ***& runtime exceptions*** against 2.4, 2.6, and 3.5. 8 years ago
Toshio Kuratomi 79d12db02f Fix the six import 8 years ago
Toshio Kuratomi 8ba0af5df3 Be sure to import urllib.parse from somewhere 8 years ago
chouseknecht fc486824b8 Fix issue #3866 8 years ago
Mike Mars 097f57d327 Missed umask octal conversion. 8 years ago
Mike Mars f592e92177 Corrected string of text... 8 years ago
Mike Mars 7af767f435 1) Modified error handling to work with Python 2.4. 2) Fixed octal codes to fall in line with the ansible guide, "Porting Modules to Python 3" 3) updated the requirements. All changes have been verified against Python 2.4, 2.6, & 3.5. 8 years ago
nitzmahone 570defc6d8 correct gs_storage docs to match reality 8 years ago
Mike Mars b30f6e02f6 Fixing compile time errors irt exception handling for Python 3. This particular diff fixes problems with Exception handling and the use/misues IRT Python 3 of octal numbers (InvalidToken exceptions). 8 years ago
Elena Washington cf31b4d8b5 Add support for PostgreSQL 9.5 in rds_param_group (fix for #3846) 8 years ago
Gilles Gagniard bbfea348df better error message if libcloud is not recent enough to use gce subnetworks 8 years ago
Jonathan A. Sternberg 97917121a6 Paginate the results from `boto.iam`
The default pagination is every 100 items with a maximum of 1000 from
Amazon. This properly uses the marker returned by Amazon to concatenate
the various pages from the results.

This fixes #2440.
8 years ago
Gilles Gagniard 152a713fd3 fix documentation to reflect subnetwork option is new in ansible 2.2 8 years ago
Gilles Gagniard 3404c0891b Initial support for specifying in which subnetwork a gce instance should be created. This is required for non-legacy networks. 8 years ago
pic 8494b0af4b fix #3528 : dns type 8 years ago
Michael Pappas 585003c546 Prevent ec2group from deleting sgs during check_mode runs 8 years ago
@ 7e4b1ebff5 Fixing Rackspace compile time errors irt exception handling for Python 3 (#3849) 8 years ago
@ 7960e99310 Fixing open stack compile time errors irt exception handling for Python 3 (#3848) 8 years ago
@ 13bebda244 Fixing gce compile time errors irt exception handling for Python 3 (#3845) 8 years ago
chouseknecht 950931144f Fix 3857 name regex 8 years ago
chouseknecht 9549c66a56 Fix #147 automatically expose published ports 8 years ago
chouseknecht 17fc0f11db Remove unused method in ContainerManager 8 years ago
@ c3aab8ddcf Fixing compile time error exception handling for python 3. (#3843) 8 years ago
Mike Mars e2dbd0f445 Fixing Docker compile time errors irt exception handling for Python 3 8 years ago
@ 3fa745eef9 Fixing error exception handling for python3. Does not need to be compa… (#3840)
* Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above.

* Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above.

* Fixing compile time errors IRT error exception handling for Python 3.5.
This does not need to be compatible with Python2.4 b/c Boto is Python 2.6 and above.
8 years ago
@ 1573066ec1 Fixing error exception handling for python. Does not need to be compatible with Python2.4 b/c boto is Python 2.6 and above. (#3839) 8 years ago
chouseknecht ec9f56d8e0 Fix #3822 stop container 8 years ago
chouseknecht c9e4955d38 Remove registery option per #3824. 8 years ago
chouseknecht be2d32f04d Fix upate typo and expected volume compare. 8 years ago
René Moser b7265d7b28 apt: fix deb=file with --diff does not show diff on upgrades (#3826) 8 years ago
René Moser a85d9930c5 apt: fix KeyError for deb=file (#3816)
Fix KeyError: 'prepared' while installing dependencies using deb=<file>.deb
This error shows up when --diff was not passed by and the deb files has dependencies not yet installed.
Closes #3752.
8 years ago
Brian Coca 73bc9fd0e0 Revert "Add prefixing and suffixing fuctionality to assemble"
This reverts commit 4c386dba56.
keeping in sync with main repo revert
8 years ago
Brian Coca cffe358260 fixed enabled state 8 years ago
Brian Coca df1b03d0c6 fixed reported state 8 years ago
chouseknecht 9dd95efe76 Fixed binds and volumes. Now recognizes bound vs unbound as well as named volumes. 8 years ago
chouseknecht abbddbde49 Fix missing ansible_facts. 8 years ago
Matthias Frey d5fc44610b Fixed error in assemble module when validation failed. (#3814)
Error was: TypeError: fail_json() takes exactly 1 argument (2 given)
8 years ago
Jirayut 'Dear' Nimsaeng d373e0a7c4 Fix volume to support not binding volumes to host 8 years ago
Anton Simernia 1aa1b617f5 Update gc_storage.py (#3802) 8 years ago
chouseknecht 96192ead02 Remove debug/register from examples. 8 years ago
chouseknecht 3d0d14c5ff Fix network comparison. Fix handling of links. Updated doc strings. Added more examples. 8 years ago
chouseknecht a4bd558240 Set version added to 2.2 so that tests pass 8 years ago
chouseknecht e398efb04f For new options move vesion_added to 2.1.1 8 years ago
chouseknecht c8f63e867a Fixed bug in _get_network_id 8 years ago
chouseknecht a9ddb5023d Fix doc strings. 8 years ago
chouseknecht 1d327a23cd Fixed issues post testing. 8 years ago
chouseknecht 39bfb136a7 First pass at implementing networks parameter. Also added purge_networks option to remove container from networks not included in networks param. 8 years ago
chouseknecht f3c33ee35f Fix for 3768 - adding support for env_file 8 years ago
Jan Fader 3afbe28b8a fix for #3706 (#3778) 8 years ago
chouseknecht 2016911e64 Check self.parameters.env exists. 8 years ago
chouseknecht bc665fca9c Fix for issue #3775 - env config comparison 8 years ago
chouseknecht 65e71d8960 Update restart_policy doc strings. 8 years ago
chouseknecht b5666c0f1c Fix restart_poicy 8 years ago
chouseknecht 8f9ef1213d Fix for #3783 - command returns not found or does not exist. 8 years ago
Dan Schmidt c8ec843ac2 Fix "ansbile_facts" typo in docker_container module 8 years ago
Erik Nadel 6f5dfcf1bd Added statement about escaping characters in chron tasks (#3770) 8 years ago
David Fischer adec050165 Add MariaDB to valid RDS engines (#3337)
* Add MariaDB to valid RDS engines

* Update RDS module documentation
8 years ago
Gabriele 1977b42956 Fixing bug, added missing param (#3737) 8 years ago
Dmitry Marakasov 13d7a61160 Fix crontab argument order for writing (#3750)
Currently, when writing user's crontab, ansible calls

    crontab <file> -u <user>

This is incorrect according to crontab(1) on both FreeBSD and Linux,
which suggest that file argument should be the last.

At least on FreeBSD, this leads to incorrect cron module bahavior which
writes to root's crontab instead of users's
8 years ago
Ghe Rivero 3ae6583510 Make add ip_floating_ip idempotent
Closes issue #1858
8 years ago
Dag Wieers f7fcb81dd9 Add unpack results to error output, for debugging purposes on failure
This may help understand what is going on with #3631
8 years ago
Toshio Kuratomi 286a46e8b4 Python2.4's zipfile library cannot handle zip 64bit extensions which are needed for > 64K files (#3754)
Fallback to unzip if zipfile fails and hope that unzip can deal with it
(sites have an easier time upgrading the unzip utility than all of
python).

https://bugs.python.org/issue3997

Fixes #3560
8 years ago
Wolfgang Powisch 20d9c0c484 Update junos_facts.py (#3759) 8 years ago
Brian Coca 01819bbc9d fixed enabled reporting 8 years ago
Brian Coca 38d71b9eef fixed typo 8 years ago
Brian Coca 472d5c11ef added state in results for backwards compat 8 years ago
chouseknecht 0c5eac4243 Fix missing key error when updating existing virtual network. 8 years ago
Roberto Bampi 375884464e Add an example for SRV record in route53 (#3749) 8 years ago
Brian Coca 8085678dc8 first draft systemd service plugin (#3660)
* first draft systemd service plugin

* now systemd status handles multiline values
8 years ago
chouseknecht d0da544aef Fix for issue 3740. Make docker_service more resilient when targeting older API versions. 8 years ago
Brian Coca f6690828af deprecated docker (#3710)
* deprecated docker

* updated formatting
8 years ago
Alvaro Aleman 2f2f80ad4c Fix can_update test in os_subnet (#3664) 8 years ago
René Moser 5fc7bc45ac Add no_gateway_ip option to os_subnet module (#3736)
no_gateway_ip option can provide subnet that is not having a gateway.
fixes #1880
8 years ago
james-prior 68b9c2ffa7 Make explicit that virtualenv is created if needed for pip module. (#3731)
packaging/language/pip.py:
    virtualenv option:
        Mention that virtualenv is created if it does not exist.
            (Explicit is better than implicit.)
        Mention other relevant options.
    notes:
        initialized -> created
    Wrap long lines.
8 years ago
Doug Luce 9167abdd10 Fix S3 unavailable region error
This is to address this error:

  fatal: [site]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to connect to S3: Region  does not seem to be available for awsmodule boto.s3. If the region definitely exists, you may need to upgrade boto or extend with endpoints_path"}

Commit 0dd58e9 changed the logic so an exception is thrown (by
`connect_to_aws`) before the `s3 is None` check is performed. This
changes the `None` check to a catch so the old logic can compensate.
8 years ago
Marcos Diez d34c5dfd69 Added one extra example in the authorized_key module. (#3637) 8 years ago
Marcos Diez 366d52cf18 The documentation of lineinfile now makes reference to blockinfile (#3639) 8 years ago
Ken Mitchell 8c2b333a73 Proposed fix to not require src and fstype arguments for mount. Issue #1259. (#1357) 8 years ago
Michael Scherer d519fca04b Port vsphere_guest to py3/py2.4 syntax (#3721) 8 years ago
Michael Scherer fefc0cdd50 Fix wait_for to compile on python3 (#3722) 8 years ago
Michael Scherer 82df6f981e Improve error reporting when git binary fail (#3266)
Showing stderr or stdout is a great help to understand
when something go south.
8 years ago
Michael Scherer b8175f70ce Convert packaging/* to py3/py2.4 syntax (#3702) 8 years ago
Kenny Woodson cd09aab9b4 Unindenting the delete to user (#3147) 8 years ago
Ryan Brown 962a446238 Allow users to pick AWS Aurora as an RDS engine (#3414)
Per the [RDS docs](http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html),
add `aurora` as a valid DB engine.
8 years ago
Nathan Brown c053fa5378 Do not expect the elb to have policies or instances. Fixes #3593 (#3595) 8 years ago
kwerey 963cb64337 Add option to make RDS param groups for the MySQL 5.7 engine family. (#3695) 8 years ago
Lloyd Hazlett 20e86d1062 Add path type to argument_spec where applicable (#3040) 8 years ago
Matt Martz a2d94c85e9 2 Module fixes (#3611)
* Fix syntax error in azure_rm_virtualmachine.py

* Allow rhn_register to fail gracefully when rhn-client-tools is not installed
8 years ago
jctanner c952753735 Do not ignore the primary group if modifying the list of secondary groups. (#3585)
Fixes #1118
8 years ago
Toshio Kuratomi 7d9fb08e1a Py3 exclude list (#3698)
* Fix a few modules to pass syntax checks under python3

* Move from a whitelist of modules to check for python3 compat to a blacklist
8 years ago
Cheuk Lam a2ff7fc7ea Added support for accepting extra config options in vm reconfiguration. (#3327) 8 years ago
chouseknecht afc8c42e57 Fixed the URL in description. It's now valid Yaml. 8 years ago
chouseknecht f14d675d2a Remove the U(). 8 years ago
chouseknecht 176363052f Uppercase 8 years ago
chouseknecht 2b4ee0c19d Make the new bits a NOTE 8 years ago
chouseknecht 4ac31f1e8d Where to get the full docker picture. 8 years ago
Michael Scherer c0217e14a7 Convert the network subfolder to py3/py2.4 syntax (#3690) 8 years ago
Michael Scherer 09066f1518 Convert all databases modules to python3 and 2.4 syntax (#3688) 8 years ago
Michael Scherer f7b29ba8fd Convert the whole files/ directory to py3 syntax (#3685) 8 years ago
Mike Bryant 0027158b74 junos_template: Simplify arguments. Fixes #3621
Simplify the arguments to junos_template, such that
merge/overwrite/replace can be selected easily.
8 years ago
Kei Nohguchi d738ad0ee0 ops_template.py: Change integer key into stirng
This fix passing the update variable to the str()
so that it avoids the exception when ops.dc.read()
returns a dictionary which contains non-string keys.

This is due to the fact that some of the key types in
OpenSwitch schema are actually defined as integer
and ops.dc declerative config module encode those
in integer inside the dictionary.  This could be
the right encoding from the schema point of view
but someone needs to convert it to the string
somewhere, as JSON key should be string.
8 years ago
Kaz Cheng ff1c591c3e Allow create_iam_role to return an additional value of role_result and (#2418)
instance_profile_result, in addition to the existing role list and change value
8 years ago
Shubham 8a6237955d remove module argument, fix #3682 (#3683) 8 years ago
Michael Scherer cca89ef489 Port seboolean to py3/py2.4 syntax (#3679) 8 years ago
Michael Scherer c793571bc3 Port mount to python3 and python 2.4 compatible syntax (#3678) 8 years ago
Michael Scherer fd61e81764 Port authorized_keys to a syntax compatible with python3 and 2.4 (#3677) 8 years ago
Michael Scherer 907b3fb667 Port hostname to a py24 and py3 compatible syntax (#3676) 8 years ago
Michael Scherer e02f401225 Port sysctl to a py3 and py24 compatible syntax (#3675) 8 years ago
Michael Scherer f0fd1109dd Port cron to a py3 and py24 compatible syntax (#3674) 8 years ago
Michael Scherer f2212dc41a Port user module to python3 and 2.4 compatible syntax (#3673) 8 years ago
Michael Scherer 31126034b0 Port htpasswd to python3 compatible syntax (#3672) 8 years ago
Michael Scherer 73a33c02a9 Do not use a tuple as argument for _create_connection (#3655) 8 years ago
Michael Scherer abfc8d36a8 Add a test on jnpr.junos.utils.sw presence (#3666) 8 years ago
jhawkesworth 2042d948db fix formatting to avoid smart quotes, which breaks ability to copy and paste the jinja2 header from the web docs (#3671) 8 years ago
Michael Scherer f423554e20 Testing the module on freebsd fail, since module is not assigned yet 8 years ago
Michael Scherer 98c729bfd7 Fix the argument for acl module (#3653) 8 years ago
Matt Martz 190f24f30e Revert "Fix doc strings spacing."
This reverts commit 127d518011.
8 years ago
chouseknecht 26392077c0 Fix doc strings spacing. 8 years ago
chouseknecht 8e6d00f28e Fix doc strings. Missing requirements and doc fragment reference. 8 years ago
Michael Scherer b788f45b49 Use the proper type for 'dest' argument 8 years ago
Toshio Kuratomi 291e00d43a Docs fixes 8 years ago
Dag Wieers c650f06b03 Fix small typo (#3642) 8 years ago
chouseknecht d5b82d67b8 Fail gracefully when build path is not found. 8 years ago
Brian Coca ca7defeee5 made note about slurp memory consumption 8 years ago
chouseknecht 9a021b4181 Fixed files/project_files naming. Correct name is files. 8 years ago
chouseknecht 5837f744e0 Flip version added back to 2.2 to make tests pass. 8 years ago
chouseknecht 018c2f8f73 Moving version added to 2.1 8 years ago
chouseknecht e8d49261e3 Added actions to RETURN docs. Show actions when debug or check mode. 8 years ago
chouseknecht 2860f57551 Removed use of --diff. Replaced 'diff' in output with 'actions'. Only show 'actions' in output if debug true. 8 years ago
chouseknecht be24f83a41 Removed fail method. Combined recreate and force_recreate params. 8 years ago
chouseknecht 50ef604713 Adding docker_service 8 years ago
Toshio Kuratomi 93fe022aa4 Port to dual python2/python3 compat 8 years ago
Toshio Kuratomi e10b7e1773 Port ping to dual python3/2 compat. 8 years ago
Chris Houseknecht 8ba5cc4392 Fixed parameters passing in container_create method. (#3618) 8 years ago
Johannes Meixner af634ff5c7 network/*/*_config.py: Correct typo.
- Replace syntanx with syntax in all things network.
8 years ago
Scott Butler e606a1237b Fixed typos 8 years ago
René Moser 326f7166c0 apt: fix always changed when using deb file on Debian 8 (#3541)
Extends d74e82a3f1e3293ffb70c172e5bb2b6e1ff6dbcc with also support
downgrade.
8 years ago
James Tanner bc39f8c42e Revert "remove checking of stderr for insserv (#1846)"
This reverts commit 2ee6e4cf66.
8 years ago
Veaceslav Mindru 8c6af73218 add vlidate_certs option for unarchive module (#2635) 8 years ago
TheSameCH ca8bf6ab4c remove checking of stderr for insserv (#1846)
stderr of insserv can also contain warnings which can be ignored. checking rc only is more accurate.
fixes #1502
8 years ago
Brian Coca 985abd2020 switched to return facts 8 years ago
Brian Coca c03e1bd2d5 fixed documentation and arg issues 8 years ago
Rene Moser 9f1cfe07bb mysql_user: fix unresolved reference
L282, module is used but not passed into function. Replaced check_mode reference and used module instead since check_mode is also in module.
8 years ago
Rene Moser 6a7682c7ea mysql_variables: fix inconsistent params, fixes ubuntu 16.04 support
In the mysql_user module, login_host is defined as "localhost". Setting this to localhost also fixes Ubuntu 16.04 support.

To make it more consistent in the future, the params in all mysql modules should move to module utils. I'll take care.

Also fixed a few other things along.
8 years ago
hyperized 82cefd7ce1 Added restart functionality to ec2.py 8 years ago
n0trax 2c3caa33f7 Add checkmode and reduce code duplication (#2417)
- httpd removed from control_binaries
- check for enabled module after running a2enmod/a2dismod
- fail, if user has no permissions to run control_binary
- reduce code duplication
8 years ago
Toshio Kuratomi ed932a53cd Fix documentation 8 years ago
John R Barker d13046a905 ansible-validate-modules part 4: Enable check on ansible-modules-core (#3526)
* Call ansible-validate-modules

* Correct quotes + add newline
8 years ago
Toshio Kuratomi fa00c69ff2 bytearray isn't available in python2.4 (#3583)
* Detection of handler depends on the wrong handler failing to list the contents of the tarfile.

Use explicit compression types with the python tarfile library to
achieve that.

* bytearray isn't available in python2.4
8 years ago
Toshio Kuratomi cd26cc8a0d Detection of handler depends on the wrong handler failing to list the contents of the tarfile. (#3584)
Use explicit compression types with the python tarfile library to
achieve that.
8 years ago
Pomin Wu d997c79487 Fixed #3577 (#3578)
Initialize `upgradable` before use.
8 years ago
Virgil Dupras 930ea5dd55 unarchive: use Python's tarfile module for tar listing (#3575)
* unarchive: use Python's tarfile module for tar listing

fixes https://github.com/ansible/ansible/issues/11348

Depending on the current active locale, `tar`'s file listing can end up
spitting backslash-escaped characters. Unfortunately, when that happens,
we end up with double-escaped backslashes, giving us a wrong path,
making our action fail.

We could try un-double-escaping our paths, but that would be complicated
and, I think, error-prone. The easiest way forward seemed to simply use
the `tarfile` module.

Why use it only for listing? Because the `unarchive` option also
supports the `extra_opts` option, and that supporting this would require
us to mimick `tar`'s interface.

For listing files, however, I don't think that the loss of `extra_opts`
support causes problems (well, I hope so).

* unarchive: re-add xz decompression support

Following previous change to use Python's `tarfile` module for tar file
listing, we lost `xz` decompression support. This commits re-add it by
adding a special case in `TarXzArchive` that pre-decompresses the source
file.
8 years ago
Harlan Lieberman-Berg a0fe26b98b command: Correct suggestion of non-existant module apt-get 8 years ago
cspollar 7dc0dcc59e Add missing periods to description items.
Current theme used by docs.ansible.com displays description items on one line. Adding periods helps readability.
8 years ago
René Moser e006fac22d readme: add build state image from travis 8 years ago
chouseknecht 1d6517489b Add doc string for container_limits. Fixed push fail message. Use path type. 8 years ago
Brian Coca fdcc1fe763 clarified docs on overwrite 8 years ago
Michael Scherer 54c71b9331 Add a better solution for the ssh_known_hosts issue
Fix https://github.com/ansible/ansible/issues/10172 too
8 years ago
Chris Houseknecht a09569c150 Adding new module azure_rm_networkinterace_facts (#3460)
* Adding new Azure module.

* Updating based on PR comments
8 years ago
Chris Houseknecht 9406855d6b Adding new module azure_rm_publicipaddress_facts (#3463)
* Adding new Azure module.

* Updating based on PR comments
8 years ago
Chris Houseknecht 9db01b03fd Adding module azure_rm_virtualnetwork_facts (#3479) 8 years ago
Chris Houseknecht 8a3539e69e Adding module azure_rm_storageaccount_facts (#3483) 8 years ago
Chris Houseknecht 08c89626bc Adding module azure_rm_securitygroup_facts (#3485) 8 years ago
Chris Houseknecht 306cbd833d Adding new module azure_rm_resourcegroup_facts (#3487) 8 years ago
Chris Houseknecht 4807aa9c0e Adding module azure_rm_virtualmachineimage_facts (#3489) 8 years ago
Chris Houseknecht b4caa29b00 Adding docker_image_facts (#3493)
* Adding docker_image_facts

* Fix github credentials
8 years ago
Chris Houseknecht bc3391f1f9 Adding docker_container (#3495)
* Adding docker_container

* If state absent, stop the container before attempting to remove. Fixed status running check.

* If container absent, stop before removing. Fix container status check.
8 years ago
Toshio Kuratomi 371d7ec73d Fix docs building 8 years ago
Dag Wieers 356d9a272a Replace ansible_hostname with inventory_hostname (#3559)
This way these examples can be re-used using the ansible command (and don't require facts gathering).
8 years ago
Peter Sprygada bf200458d3 fixes docstring issue for junos_config arguments
The docstring was incorrectly merged with some old entries that will
cause the documentation not to build correclty.  It is now fixed.
8 years ago
Toshio Kuratomi 5f0dc2b90f Some beginning python3 porting for modules which have unittests 8 years ago
Brian Coca 8397c8169c fixed intersection 8 years ago
Michael Scherer ce0be575e2 Change gem_source and executable to 'path'
Both of them are file location, so they should be
marked as 'path'.
8 years ago
Ryan Brown 52edeeca4c Fix capitalization of AWS in ec2_lc module documentation 8 years ago
Brian Coca 0ae72e2712 rearranged options to be more declarative 8 years ago
Brian Coca 3ebfe3f00a fixed missign main 8 years ago
Brian Coca cf1b391201 several fixes:
- removed actions feature as this should be global and not per module
- removed default fields from return docs
- moved tags docs to shared fragments
- removed unused imports
8 years ago
Bill W 0fcc2d8973 Add more example on how to use module ec2_tags to list tags on an ins… (#3530)
* Add more example on how to use module ec2_tags to list tags on an instance

* Add more example on how to use module ec2_tags to list tags on an instance
8 years ago
deyvsh 3775d8e684 Extend example to demonstrate usage of ephemeral disks. (#3550) 8 years ago
jedelman8 28db5b7dd1 add nxos_interface 8 years ago
chouseknecht f09b7b02d6 Remove differences from output. Make options declarative. 8 years ago
chouseknecht ae30540ca2 Reduced states to present and absent. Power states are now bool options. 8 years ago
chouseknecht a67e9f3122 Updated version_added on options to reflect options added for 2.1. 8 years ago
chouseknecht f2e7f1935b Clean up and fixes post API version 1.20 testing. 8 years ago
chouseknecht 6f122bdc88 Fix github credentials 8 years ago
chouseknecht f257fb3efa Fix unfriendly exeption handling. 8 years ago
chouseknecht 6aa76b835a Updater per PR comments 8 years ago
chouseknecht 720e7daa3a Fix poller error handling 8 years ago
chouseknecht fd0554c67e Adding refactored docker_image module. 8 years ago
chouseknecht 4f35cb0b2e Adding module azure_rm_virtualmachine 8 years ago
tonyqui cb9df31ef3 Fixing a typo, floating-ips has been used instead of floating_ips (#3540) 8 years ago
Brian Coca 8a4257d297 removed incorrect defaults from docs 8 years ago
James Cammarata 124c4b94c1 Remove extraneous debug stuff from uri module left over from testing 8 years ago
James Cammarata 50cd8b0aa5 Make sure uri output contains json output when a non-200 status is returned
Prior to the switch to the urls.py code, non-200 responses contained
a 'json' value when the content-type was JSON. This fix restores that
field upon a non-2xx response.

Fixes ansible/ansible#15555
8 years ago
Nathaniel Case 75dbe9f1e8 Remove unnecessary exception from nxos_command (#3521) 8 years ago
Chris Houseknecht c5b7e456bd Adding docker_login (#3494)
* Adding docker_login

* Set correct version_added.

* Fix github credentials
8 years ago
Konstantin Gribov 9284c80039 Escape spaces, backslashes when create new entry in fstab (#3193)
Supplement to PR #1454 and issue #530.

Fixes #3192.
Fixes #1861 (introduced by PR #1454).

Signed-off-by: Konstantin Gribov <grossws@gmail.com>
8 years ago
Brian Coca 0ba37906df minor doc fixes 8 years ago
Chris Houseknecht e85368cb3e Adding new module azure_rm_resourcegroup (#3490)
* Adding new module azure_rm_resourcegroup

* Fix poller error handling
8 years ago
Chris Houseknecht 6d4a5e5f0e Adding module azure_rm_storageaccount.py (#3484)
* Adding module azure_rm_storageaccount.py

* Fix poller error handling
8 years ago
Chris Houseknecht fedf06c449 Adding module azure_rm_securitygroup (#3486)
* Adding module azure_rm_securitygroup

* Fix poller error handling
8 years ago
Chris Houseknecht 8ba16e9866 Adding new module azure_rm_storageblob (#3482) 8 years ago
Chris Houseknecht 0d285ec18b Adding module azure_rm_subnet (#3481)
* Adding module azure_rm_subnet

* Fix poller error handling
8 years ago