Commit graph

7741 commits

Author SHA1 Message Date
fperks
7fd3262c3c Fix error on ec2 status change
Both `source_dest_check` and `termination_protection` variables are not
available within the scope of the startstopec2 instance method. This just
pulls them from module.params.
2015-10-07 13:43:57 -04:00
Brian Coca
661a0cb9ee Merge pull request #2223 from bcoca/pip_chdir_fixes
make chdir a path so it resolves shell aliases
2015-10-07 12:19:29 -04:00
Brian Coca
22bfb54d9d added comment explaining chdir defaults 2015-10-07 12:19:50 -04:00
Brian Coca
a639da7c44 default chdir to tmpdir to avoid virtualenv issues 2015-10-07 12:18:36 -04:00
Brian Coca
8c353d0516 make chdir a path so it resolves shell aliases
also removed this_dir logic as it is not needed, chdir is None by default and run_command can handle that.
2015-10-07 10:38:47 -04:00
Gilad Peleg
5f914e854b Add state=running on some ec2 examples
`state=running` was missing in some of the ec2 module examples
2015-10-07 14:49:05 +03:00
Rob
ca517abf07 Set default of dimensions parameter to be empty dict 2015-10-07 13:54:00 +11:00
Andrew Widdersheim
e36e1339e8 Fix detached head detection in is_not_a_branch()
Detached head detection seems to have broken somewhere a long the way
because git decided to change how that situation looks when doing a 'git
branch -a' which is performed by get_branches().

This is how git 1.7.1 displays this situation (which works):

shell> git branch -a
* (no branch)
  master

This is the output from git 1.8.3.1 (which does not work):

shell> git branch -a
* (detached from e132711)
  master

It looks like this same wording is used in the most recent version of
git (2.6.1 as of writing this).
2015-10-06 15:37:45 -04:00
Kai Webber
d0b30dd86d Added launch group support for ec2 module 2015-10-06 20:26:10 +03:00
gekmihesg
cdf0c8a560 Support sysctl on OpenBSD
Fixes #1233
2015-10-06 17:38:47 +02:00
Brian Coca
3a9d046f96 Merge pull request #2206 from fxfitz/win_get_url_ps1_spelling
Fixed spelling mistake: missing
2015-10-06 08:29:12 -04:00
Brian Coca
1479e143b6 Merge pull request #2207 from adrianlzt/fix/doc_os_subnet
Fix yaml syntax
2015-10-06 08:28:55 -04:00
James Cammarata
d659c79db7 Adding version file for core modules on devel branch 2015-10-06 08:14:42 -04:00
Andrew Pashkin
cee7e928fc Add 'entrypoint' parameter to Docker module 2015-10-06 12:47:47 +03:00
Adrian Lopez
8c7d697c17 Fix yaml syntax 2015-10-06 10:26:44 +02:00
fxfitz
6f3cbd7aa2 Fixed spelling mistake: missing 2015-10-05 21:26:52 -05:00
dagnello
3365dad0d8 Adding os_port Module to openstack ansible modules 2015-10-05 19:36:37 -04:00
James Cammarata
a3e7f5cfcc Merge pull request #2062 from wimnat/feature/iam_policy_doc_fix
Update iam_policy.py doc and state default parameter
2015-10-05 16:53:14 -04:00
James Cammarata
02c9a1b336 Merge pull request #2158 from Shrews/os_network
Allow setting external attribute
2015-10-05 16:22:42 -04:00
Brian Coca
144291120e restored quotes to checksum description to avoid breaking docs 2015-10-05 09:07:16 -04:00
Brian Coca
d4a03eed10 Merge pull request #2201 from halberom/qfix
ec2_tag - minor doc fix
2015-10-04 13:27:58 -04:00
Gerard Lynch
8b1ee3d6cb minor doc fix 2015-10-04 17:32:12 +01:00
Brian Coca
ddf25cf50e Merge pull request #2200 from sirkubax/devel
missing description
2015-10-04 10:03:38 -04:00
JM
7943b3e6b0 description for the get_url module describing checksum verification before file download 2015-10-04 14:24:07 +02:00
Colin Hutchinson
f7aa6c4d27 make a text link into a actual hyperlink
the text link doesn't fit on some screen resolutions. Making it into sphinx hyperlink will solve that
2015-10-03 21:50:15 -04:00
Michael Fenn
9b04ca55f1 Support cloning VMs into a specific VM folder
The pysphere VIVirtualMachine.clone() method supports specifying a VM
folder to place the VM in after the clone has completed.  This exposes
that functionality to playbooks.

Also documents that creating VMs could always place VMs in a specific
folder.
2015-10-03 14:31:22 -04:00
Matias De Carli
c2520e6b67 keep backwards compatibility 2015-10-03 14:03:54 -03:00
Brian Coca
965cb1f825 Merge pull request #2194 from manics/fix_group_variable
Bugfix Pull Request: Fix incorrect variable in group.py: user -> group
2015-10-02 21:29:08 -04:00
Simon Li
d616fd12da Fix incorrect variable in group.py: user -> group 2015-10-03 01:09:03 +01:00
Toshio Kuratomi
dbc860daaa Fix docs build 2015-10-02 09:21:29 -07:00
Brian Coca
79ec9efd7b Merge pull request #1048 from emonty/feature/os_router
Add OpenStack Router module
2015-10-02 10:10:31 -04:00
David Shrewsbury
aa1e8b8b05 Add author to os_router 2015-10-02 09:41:18 -04:00
David Shrewsbury
08e91ef68f Deprecate older router modules.
The quantum_router_gateway.py and quantum_router_interface.py modules
are deprecated with this change.
2015-10-02 09:24:03 -04:00
Andrew Pashkin
e96549c95d 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()'.
2015-10-02 12:30:03 +03:00
James Cammarata
79d18981c7 A few bug fixes and tweaks for the accelerate module 2015-10-02 00:48:43 -04:00
Mike
8c9a9c0802 update_disks(): added origins of the code. 2015-10-01 17:38:46 +01:00
Mike Christofilopoulos
83074ad501 add new disks automatically when the 'vm_disk' section changes 2015-10-01 17:29:21 +01:00
Matt Martz
45c5b4bf4b Merge pull request #1002 from vmihailenco/fix/rx-isdir-path
rackspace: pass full path to the isdir.
2015-10-01 10:59:43 -05:00
Brian Coca
a15aa09251 removed typo 2015-10-01 10:16:34 -04:00
Brian Coca
f6bbd2ac5b removed syslog in favor of common module logging functions 2015-10-01 00:13:58 -04:00
Brian Coca
3e42527fde revert must_exist 2015-10-01 00:13:58 -04:00
Brian Coca
da220e0bb0 added version_added 2015-10-01 00:13:58 -04:00
Nathaniel Felsen
8ec17d0fd9 Adding support for access logs in ELB 2015-09-30 18:02:47 -07:00
Brian Coca
b9090a8146 Merge pull request #2174 from voidfiles/devel
Fix a argument mismatch in elasticache
2015-09-30 19:43:53 -04:00
Alex Kessinger
4308ae25c4 Fix a argument mismatch in elasticache
I think in this commit 720aeffca2

There was bug introduced where the ElastiCacheManager init method has
a number of positional arguments like so.

```py
    def __init__(self, module, name, engine, cache_engine_version, node_type,
                 num_nodes, cache_port, parameter_group, cache_subnet_group,
                 cache_security_groups, security_group_ids, zone, wait,
                 hard_modify, region, **aws_connect_kwargs):
```

But then later in the code the positional arguments are passed in
like this.

```py
    elasticache_manager = ElastiCacheManager(module, name, engine,
                                             cache_engine_version, node_type,
                                             num_nodes, cache_port,
                                             cache_subnet_group,
                                             cache_security_groups,
                                             security_group_ids, parameter_group, zone, wait,
                                             hard_modify, region, **aws_connect_kwargs)
```

If you count, you can see that cache_subnet_group, is being passed in
where the manager expects to see parameter_group.
2015-09-29 16:51:26 -07:00
Chris Church
fbd9c0a375 Merge pull request #2173 from mcalhoun/devel
Powershell throwing 'The variable cannot be retrieved because it has not been set' error
2015-09-29 19:13:16 -04:00
Matt Calhoun
73843693b7 The variable $uppercase_cert_thumbprint cannot be retrieved because it has not been set. 2015-09-29 16:40:22 -04:00
Matt Calhoun
4350188076 The variable $winrm_cert_thumbprint cannot be retrieved because it has not been set. 2015-09-29 16:38:48 -04:00
Matt Calhoun
1d8334674f The variable $https_listener cannot be retrieved because it has not been set. 2015-09-29 16:37:26 -04:00
Matt Calhoun
d8f9c81022 The variable $winrm_https_listener_path cannot be retrieved because it has not been set 2015-09-29 16:35:47 -04:00