Commit Graph

22685 Commits (a93445c798e06d1828a546807bd610af3fd2e376)
 

Author SHA1 Message Date
HAMSIK Adam 05df069176 Add module parameter for security group name. This make ec2_elb_lb module consitent with others 8 years ago
Maksim Losev 482d8da2dc Use HostConfig object when creating container with Docker Remote API > 1.15
This is mlosev's patch (from #1208), rebased against devel as of
2790af2.  It resolves #1707, which was caused by an API incompatibility
between the docker module and server API version 1.19.
8 years ago
Lars Kellogg-Stedman e031efd82c Do not erroneously mask exceptions
There was a catch-all `except` statement in `create_containers`:

        try:
            containers = do_create(count, params)
        except:
            self.pull_image()
            containers = do_create(count, params)

This would mask a variety of errors that should be exposed, including
API compatability errors (as in #1707) and common Python exceptions (KeyError, ValueError, etc) that could result from errors in the code.

This change makes the `except` statement more specific, and only attempts to pull the image and start a container if the original create attempt failed due to a 404 error from the docker API.
8 years ago
Lars Kellogg-Stedman 6116e4cdab docker: permit empty or false pid
The `docker` Python module only accepts `None` or `'host'` as arguments.
This makes it difficult to conditionally set the `pid` attribute using
standard Ansible syntax.

This change converts any value that evaluates as boolean `False` to
`None`, which includes empty strings:

    pid:

As well as an explicit `false`:

    pid: false

This permits the following to work as intended:

    - hosts: localhost
      tasks:
      - name: starting container
        docker:
          docker_api_version: 1.18
          image: larsks/mini-httpd
          name: web
          pid: "{{ container_pid|default('') }}"

If `container_pid` is set to `host` somewhere, this will create a
Docker container with `pid=host`; otherwise, this will create a
container with normal isolated pid namespace.
8 years ago
Brian Coca 9e54efd3fd fixed version added, reworded description a bit 8 years ago
Brian Coca 16a4ff3462 fixed minor doc issues 8 years ago
Brian Coca 0cab021168 Revert "Revert "ec2_lc - include all launch config properties in the return"" 8 years ago
Brian Coca af8ded66cc Revert "ec2_lc - include all launch config properties in the return" 8 years ago
Toshio Kuratomi a655241488 Minor touch ups of vsphere_guest code. 8 years ago
Brian Coca 60d160a2e9 Also document in example that unarchive download was added in 2.0 8 years ago
Mitchell Ludwig b664603a4d Improved stat documentation 8 years ago
Frank van Tol 39e24e89f4 Remove default port value, it does not work in _requires_destroy_and_create logic
When creating a Redis cluster, every run it gets destroyed and recreated because the port number of memcached is used as the default.
8 years ago
Frank van Tol 6655cd89c4 Update elasticache.py 8 years ago
Frank van Tol 426f93a291 Remove default for engine_version
Redis and memcached have different engine version numbering, there can not be a shared default value.
8 years ago
Nicholas O'Connor b95cb3f4e9 Created option snapshot_to_clone. When specified, snapshot_to_clone will create a linked clone copy of the VM. 8 years ago
Apoorva Kulkarni 1f35e578b4 s3 module: Add missing version tag to "encrypt" parameter 8 years ago
Chris Church 31a01305ba Set force=yes as the default, add force parameter to module docs. 8 years ago
James Cammarata 5efeeb156b Correctly default crypt_scheme in htpasswd 8 years ago
Chris Faulkner 18b157fbac Report change status on django_manage collectstatic. 8 years ago
Evan Carter d3ef622627 Adding default cooldown to AWS ASG 8 years ago
vanga ddd399fe7a Throw error if encryption is set while passing a snapshot id 8 years ago
Chris Meyers 0dbf41e740 ensure password or ssh cert specified 8 years ago
Tom Paine e97124d609 Update vsphere_guest.py 8 years ago
acaveroc dda41fd95a Add version_added and type of parameter 8 years ago
acaveroc 2c6f69c95e Assorted minor bug fixes
- Modified data type for port definition from string to integer
- Modified login_host default value for compatibilize with port definition according with MySQL Documentation (https://dev.mysql.com/doc/refman/5.0/en/connecting.html)
8 years ago
acaveroc 1283fdd118 Add port definition support for mysql_vars module 8 years ago
Joel Thompson f1ab33ad7b Adding ability to filter AWS Route 53 private hosted zones by attached VPC 8 years ago
Hennadiy (Gena) Verkh 098126807d Update uri.py
Added methods 'TRACE', 'CONNECT' from https://www.rfc-editor.org/rfc/rfc2616.txt, section 5.1.1
Added method 'REFRESH'
8 years ago
Tal Auslander 8766641871 use ConvertTo-Bool for the force parameter 8 years ago
Tal Auslander 64f19fc4c6 stop reading from url on error 8 years ago
Tal Auslander 9c6d829991 add force parameter to win_get_url 8 years ago
Tal Auslander 26a54897a2 win_get_url re-download file only if modified 8 years ago
Hennadiy (Gena) Verkh 852c232b2d Removed method restriction in uri module 8 years ago
Ian Babrou 9219aeaaeb Pulling missing docker image before doing anything 8 years ago
Nic O'Connor c68d1ffa60 Added the ability to Linked_clone from snapshot 8 years ago
Simon Olofsson a3cb6d2f16 Add option docker_user for docker module.
docker_user can be used to specify the user or UID to use within the
container.
8 years ago
Iiro Uusitalo b92dabb9fb Refactor force basic auth, now all modules which use fetch_url() can use force_basic_auth 8 years ago
Toshio Kuratomi 05be82183f Add notes about loop squashing and 1.9.2 change to install packages in one yum transaction 8 years ago
Monty Taylor 8e26a7ae17 Fix a small typo in parameter processing 8 years ago
Brian Coca f8f4a7dcdf added ignore hidden to assemble 8 years ago
Jesse Keating 16381fb5c0 Plumb ipv6 modes into os_subnet
Shade already supports these, we just need to plumb them into the module
code.
8 years ago
Jesse Keating 72809ac329 Fix up docs 8 years ago
Sean Chittenden 4c8b573e2c Fix group mod and group add for FreeBSD 8 years ago
Juho-Mikko Pellinen 29620b78fa Change the default flag value to None to prevent AWS complaining: "Instance creation failed => InvalidBlockDeviceMapping: the encrypted flag cannot be specified since device /dev/sda1 has a snapshot specified." 8 years ago
Monty Taylor 530f12035b Update docstring to show port ranges as optional 8 years ago
David Shrewsbury 789c1fcbe7 Correct port matching logic
Port matching logic did not take into account recent shade change
to equate (None, None) to (1, 65535) when Nova is the backend.

Also, this encapsulates the port matching logic into a single function
and heavily documents the logic.
8 years ago
Flyte 2f46364921 Provide correct kwargs to rds2 connection when making a final snapshot 8 years ago
David Shrewsbury 387fe5b0e7 Change required parameters for rules module
The ports and protocol are no longer required (and now depends on
a new version of shade).
8 years ago
Davide Guerri 531b93490b Fix reuse argument documentation 8 years ago
Davide Guerri 95cfe3da96 Update os_floating_ip with new shade methods 8 years ago