Commit Graph

23127 Commits (b6ff36bed3a3864ff0e43f99ebc6a626ca85b8a2)
 

Author SHA1 Message Date
stephane 40e7ed9518 Add support for pip force-reinstall
The pip command allows a user to force reinstallation,
but the module doesn't currently support it. Add
"force-reinstall" as a possible state.
8 years ago
Manuel Tiago Pereira 057cbacf8a Add support for legacy registries to pull_image().
Since we now have several exceptions to the assumption that the
result of the pull would be on the last status line returned by
docker-py's pull(), I've changed the function so that it looks
through the status lines and returns what if finds on it.
Despite the repeated `break`s, the code seems simpler and a little
more coherent like this. From what I've checked using
`https://github.com/jlafon/ansible-profile`, the execution time is
mostly the same.
8 years ago
Sam Thursfield eba767902c os_server: Add some error checking for the 'nics' parameter
If this parameter was not of the right type, the module would fail with a
traceback, with a "AttributeError: 'str' object has no attribute 'get'"
exception.

It now gives a proper error message on type errors.
8 years ago
nitzmahone 317ea13759 win_get_url doc/strict-mode fixes
plus cleaning up from bad merge
8 years ago
nitzmahone feb077261e minor win_get_url doc update 8 years ago
T.Kuramochi dfda2e9f57 Add HTTP Proxy options
Update a document file for win_get_url.ps1.

Update add a prefix proxy_ for this variables

Update a document file for win_get_url.ps1.

Update win_get_url.ps1 20150907
8 years ago
Toshio Kuratomi 7a492764d0 Fix up documentation 8 years ago
Toshio Kuratomi 4fa9de5af3 entrypoint feature added in 2.1 8 years ago
Toshio Kuratomi eb65f819f5 labels is actually not aded in 1.9.4 but in 2.1 8 years ago
Andrew Pashkin c811a3f4bc Add 'entrypoint' parameter to Docker module 8 years ago
Andrew Pashkin 8342397427 Harden matching running containers by "command" in the Docker module
Before this patch:

  - Command was matched if 'Command' field of docker-py
    representation of Docker container ends with 'command' passed
    to Ansible docker module by user.
  - That can give false positives and false negatives.
  - For example:
      a) If 'command' was set up with more than one spaces,
         like 'command=sleep  123', it would be never matched again
         with a container(s) launched by this task.
         Because after launching, command would be normalized and
         appear, in docker-py API call, just as 'sleep 123' - with one
         space. This is false negative case.
      b) If 'entrypoint + command = command', for example
         'sleep + 123 = sleep 123', module would give false positive
         match.

This patch fixes it, by making matching more explicit - against
'Config'->Cmd' field of 'docker inspect' output, provided by docker-py
API and with proper normalization of user input by splitting it to
tokens with 'shlex.split()'.
8 years ago
Omar Khan 369fe78c60 Add stop_timeout option to docker module 8 years ago
Toshio Kuratomi a708ad65c4 Add version_added to documentation 8 years ago
Joe Quadrino b6e2b2dce1 add devices parameter for docker module 8 years ago
Yann Hamon 1faf8dd5c2 Docker module: restarted should update the container when necessary 8 years ago
Andy Nelson 444895f889 Update to ec2_vpc.py to: 1 allow interface ids and vpc peering connections as route targets 2 set state to "terminated" when VPC is removed 3 fix some comment typos
updates per PR comments
8 years ago
HAMSIK Adam 2af105bcbc Convert enabled value to boolean to actually work, make sure we can set expiration period to 0(None) to disable it 8 years ago
Pedro Romano bcae9a2b5e GCE libcloud 0.15 support and code cleanup * Code formatting (indentation and white space) fixes for improved PEP8 conformity. * Remove redundant backslashes inside parentheses. * Test for object identity should be 'is not None'. * Test for membership should be 'not in'. * Fit docstring to the PEP8 79 character limit. * Use forward compatible Python 2.6+ 'except .. as' syntax for exception handling. * Support libcloud > 0.15 'metadata' argument format. 8 years ago
Toshio Kuratomi 65b9243056 mariadb isn't always the last elemen of the version string 8 years ago
Toshio Kuratomi 0a64899eba Fix mysqldump usage of config_file 8 years ago
Brian Coca f8a36c4047 service goes back to failing when absent
if no tools and no init script, this should always fail
8 years ago
Alberto Gireud 58c39f47c1 Update root_volume variable 8 years ago
Toshio Kuratomi dafb39da2e Account for mariadb versioning 8 years ago
luto d48dffc298 vsphere_guest: support putting a guest into a nested folder 8 years ago
Jonathan Mainguy 0cdb2719e5 Unify all 3 mysql modules.
Use same connection method, use config_file, and add ssl support
8 years ago
Toshio Kuratomi 8d293651df Fix os_server docs build 8 years ago
Lee H 7feb64d31c - add version_added as requested to host_all 8 years ago
Lee H 5606197c28 - remove user_anonymous as the same thing can be accomplished by user='', but leave in the examples for removing anonymous users 8 years ago
Donovan Jones 8b9cd7f410 fix typo in os_server security_groups description 8 years ago
Brian Coca 9259b51c97 updated module docs, added choices to state 8 years ago
Tobias Smolka cf5403afa3 Making cluster parameter optional 8 years ago
Brian Coca 63fd67f156 added mime option to stat module
it uses file magic to now return mime_type and charset of a file as
per output of `file -i /path`
8 years ago
Lee H 95895177d0 - add example showing removal of anonymous user accounts 8 years ago
Monty Taylor a715c91d0b Add support for network, boot_from_volume and volumes
nics is a great flexible parameter, but it's wordy. Shade now supports
a simple parameter too, which is just "network" and takes a name or id.
Add passthrough support.

In addition to supporting booting from a pre-existing volume, nova and
shade both support the concept of booting from volume based on an image.
Pass the parameters through.

Shade supports boot-time attachment of additional volumes for OpenStack
instances. Pass through the parameter so that ansible users can also
take advantage of this.
8 years ago
Toshio Kuratomi 687257bd62 Use rpm instead of repoquery for is_installed()
* This keeps us from hitting bugs in repoquery/yum plugins in certain
  instances (#2559).

* The previous is also a small performance boost

* Also in is_installed(), when using the yum API, return if we detect
  a package name has been installed.  We don't need to also check
  virtual provides in that case.  This is another small performance
  boost.

* Sort the list of packages returned by the list parameter.
8 years ago
Brian Coca 3b934016c0 note that create globs only work on 2.0
fixes #2666
8 years ago
Brian Coca b4f87ac7fe made note that Z/z are only 2.1 options 8 years ago
Jonathan Mainguy b86224a7ec Add Jmainguy as author, fix hash check 8 years ago
Adam Fields 9c131ea619 added a reference to the template module for clarity 8 years ago
Timothy R. Chavez 37ac954123 Get new server object after adding floating IP
We need a new server object once we add the floating ip, otherwise we
will be operating with the older server object pre-floating-ip
assignment.
8 years ago
Michel Alexandre Salim 325a979876 Set the argument type for ec2_vol's encrypted parameter
If this is not set, Ansible parses the parameter as a string.
This is fine if the parameter is not provided by the caller, but
if it is set to False or True explicitly, ec2_vol receives this as
the string 'False' or the string 'True', both of which are truthy.

Thus, without this fix, setting the parameter results in encryption
always enabled.
8 years ago
Veaceslav Mindru fa98f55c44 fix typo s/defaults/default 8 years ago
Steve Spencer d4aca8eacc Sync up with allowable docker volume mounting modes 8 years ago
Steve Spencer 769d7db1d0 Add support for mounting host volumes with Z and z options 8 years ago
Lee Hardy f2f0f83ee6 - fix user_exists statement with host_all to use only username parameter 8 years ago
Leonty 22648e88cd Corrected misspelling in the 'labels' docker parameter documentation. 8 years ago
Lee Hardy 1113975741 - mysql: add user_anonymous parameter, which interacts with anonymous users - mysql; add host_all parameter, which forces iteration over all 'user'@... matches 8 years ago
Brian Coca f435f887fa better handling of checkmode for solaris fixes #2296 8 years ago
Aaron Boushley 876bdb62e1 Fix issue with comparing versions improperly.
This allows old versions of docker api to function.
8 years ago
Leonty 8638d9d26c Support 'labels' parameter for docker. 8 years ago