Ted Timmons
d2e01477eb
add root_device_type filter. ( #31911 )
...
* add root_device_type filter.
This module is due for a refactor, but I'm piling on.
* add version added
2017-10-19 14:59:15 -04:00
Sloane Hertel
73abce83a9
iam_managed_policy: use python 3 compatible policy comparison - fixes #31474 ( #31535 )
...
* Move compare_policies and hashable_policy functions into module_utils/ec2
* Use compare_policies which is compatible with python 2 and 3.
* rename function to indicate internal use
* s3_bucket: don't set changed to false if it has had the chance to be changed to true already.
2017-10-19 08:55:45 +10:00
Marek Nogacki
b9223cdc89
ec2_group: do not fail on description mismatch ( #31704 ) ( #31734 )
...
* ec2_group: do not fail on description mismatch (#31704 )
* ec2_group: do not fail on description mismatch (#31704 ) - fix test case
2017-10-18 09:21:55 -04:00
Sloane Hertel
1b63885fc5
[cloud] Check instance public-IP property before transforming to dict ( #31849 )
2017-10-18 09:17:06 -04:00
Johannes Weißl
269672faf1
[cloud] Add CAA record type to route53 ( #29178 )
...
The CAA record type is supported in Amazon Route 53 since Aug 21, 2017. Tested manually.
- https://aws.amazon.com/about-aws/whats-new/2017/08/amazon-route-53-now-supports-caa-records/
- http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html#CAAFormat
- https://tools.ietf.org/html/rfc6844
2017-10-18 12:48:04 +10:00
Michael Fenn
eab9ca9a00
ec2_vpc_endpoint: make policy_path usable ( #31801 )
...
The current code flow precludes the use of the policy_path module
parameter that's documented. It's actually called policy_file in the
code.
What's worse is that the policy_file branch actually tries to open the
file named by the policy parameter, even though policy and policy_file
are marked as mutually-exclusive.
This change fixes the logic bug in policy_file and updates the
documentation to reference policy_file. The old parameter policy_path
is provided as an alias
2017-10-17 14:34:29 -04:00
adambanker
ee4e1be7cd
Fixed redshift_subnet_group typo ( #31836 )
2017-10-17 09:16:59 -04:00
Prasad Katti
b9e15d0df1
Support 'termination protection' for cloudformation stacks ( #31675 )
...
* Support 'termination protection' for cloudformation stacks
- Pass in the stack_name and desired termination protection state to update_termination_protection
* Fix for failing cloudformation unit test
* Check if cfn has update_termination_protection attr
* Use hasattr to test if cfn supports update_termination_protection
* termination_protection shouldn't prevent update_stack call for existing stacks
2017-10-17 08:34:45 -04:00
Takuya Sato
a8bc6f69d9
skip check environment parameter if has no containers. ( #31083 )
...
* skip check environment parameter if has no containers.
* optimize code
2017-10-17 08:30:32 -04:00
Javier Cortejoso
844e58aedb
Define new_target_group before. Fixes #31378 ( #31379 )
2017-10-16 14:33:47 -04:00
John Kerkstra
1e85facf36
add note to ec2_vpc_route_table that purge_subnets option is contingent subnets option ( #31749 )
2017-10-16 13:35:59 -04:00
evancarter-iex
d6520c64b3
gce_instance_template: fix allow the setting of the service account ( #29154 )
2017-10-16 16:00:07 +02:00
Will Thames
03abce2d39
Add pagination for IAM group API calls ( #31554 )
...
get_group and list_attached_policies_for_groups can be paginated
so add pagination handling.
Fixes #31545
2017-10-16 09:42:43 -04:00
Prasad Katti
30fd1870f3
[docs] Clean up the cloudformation examples ( #31770 )
...
- added `role_arn` to the "role example" example
- removed the irrelevant parameters to the "role example" example
- updated comment on one of the examples
- removed the last example as it was a duplicate of "role example" example
- some other minor changes
2017-10-16 08:53:10 -04:00
Ondra Machacek
052f4d2571
ovirt_networks: Fix label assigment condition ( #31772 )
2017-10-16 04:58:51 -04:00
René Moser
8b8d5aaca7
cs_instance: remove CloudStackException dep ( #31724 )
...
- fixes dep
- fix docs
2017-10-14 00:09:57 +02:00
Sloane Hertel
53e476ad4e
[cloud] Only enforce state (running/stopped/etc) in EC2 "exact_count" when state is specified ( #31648 )
...
fix issue in ec2 module where exact count would create new instances if the instane state is stopped or terminated
2017-10-13 14:11:07 -04:00
Sloane Hertel
90b6178e61
[cloud] Don't try to deregister an instance that isn't in the load balancer ( #31660 )
2017-10-13 13:59:24 -04:00
Sloane Hertel
34e2019251
[cloud] Require src parameter when aws_s3 is used with mode 'put' ( #31657 )
2017-10-13 13:57:40 -04:00
Sloane Hertel
e26955fc9a
[cloud] Document alias for aws_s3 'overwrite' option. ( #31638 )
2017-10-13 13:55:24 -04:00
Kenny Gillen
1234a79349
Fix gender pronouns and the odd typo ( #31709 )
2017-10-13 13:52:38 -04:00
Katerina Koukiou
8d4c059275
cloud: ovirt: Add ovirt_disk_facts module ( #30422 )
2017-10-13 10:32:41 -04:00
Ryan Brown
e0c2b6bbb4
Rename ssm_parameter_store module and ssm lookup to be prefixed with aws ( #31662 )
2017-10-13 13:52:10 +10:00
Samprita Hegde
6d16739926
[cloud] Support changeset_name parameter on CloudFormation stack create ( #31436 )
2017-10-12 15:44:06 -04:00
Ted Timmons
bc1e3d22c2
[cloud][docs] Document default/required 'state' in CloudFormation module ( #31642 )
...
* fix documentation to match default/required status of 'state'
* add 'choices'
2017-10-12 15:31:42 -04:00
Pilou
840a57a4ed
s3_sync: fix broken import ( #31460 )
2017-10-12 20:48:05 +02:00
Ondra Machacek
8dd1267e6b
ovirt: Add new api facts module ( #28875 )
...
* ovirt: Add new api facts module
* Simplify boilerplate and add Python 3 import
2017-10-12 13:57:33 -04:00
Zubair Lutfullah Kakakhel
4034630625
vmware_vm_facts: Add error check for config.vm ( #31629 )
...
Add a simple check to see if vm.config exists before looking for
vm.config.hardware
2017-10-12 10:32:06 -04:00
Ondra Machacek
f5c0e2895b
ovirt_vms: Wait for VM disks when adding VM ( #31468 )
...
Fixes: https://github.com/ansible/ansible/issues/30515
2017-10-12 08:56:13 -04:00
Ondra Machacek
e5c0958dbb
ovirt_templates: Fix exlusive parameter ( #31470 )
2017-10-12 08:49:38 -04:00
Ondra Machacek
23c47a65c1
ovirt_networks: Add label to network ( #31517 )
2017-10-12 08:49:30 -04:00
Ondra Machacek
c71394a13a
ovirt_clusters: add alias performance_preset for memory_policy ( #31523 )
2017-10-12 08:49:22 -04:00
Abhijeet Kasurde
9d811a34c4
pep8 fixes for vmware modules ( #31537 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-10-12 07:50:05 +02:00
René Moser
540d53327d
cs_instance_facts: fix pep8 ( #31606 )
2017-10-12 14:00:14 +10:00
Prasad Katti
03ec3cd572
[aws_s3] different fail msg depending on whether version is specified ( #31598 )
2017-10-12 12:12:55 +10:00
Ondra Machacek
0bce693046
ovirt_templates: Add seal parameter ( #31482 )
2017-10-12 09:04:26 +10:00
René Moser
e872763877
cs_portforward: remove CloudStackException dep ( #31610 )
...
- fixes pep8
- fixes doc
2017-10-12 00:25:01 +02:00
René Moser
c1121dd5fb
cs_securitygroup_rule: remove CloudStackException dependency ( #31603 )
...
- fixes pep8
- fixes docs
2017-10-11 22:23:00 +02:00
René Moser
af6e89fbc8
cs_securitygroup: remove CloudStackException dep ( #31597 )
...
- fixes pep8
- fixes docs
2017-10-11 20:58:08 +02:00
Rene Moser
4dc3874176
cs_snapshot_policy: fix VM not found in non-default zone
2017-10-11 18:35:54 +02:00
Rene Moser
d6e1f02990
cs_snapshot_policy: remove CloudStackException dependency
2017-10-11 18:35:54 +02:00
Philippe Dellaert
9580a6569e
Fix #21112 : Adding support for configuring a CD-rom iso image ( #28155 )
...
* Initial CD-ROM support
* create cdrom bugfix
* Improving CDROM change detection and fixing template creation bug
Running MarkAsTemplate on an existing template will fail with an error
* Better change detection for guest ID
Should only mark a change in case it actually changes
* Adding integration tests
* Pep8 compliance fixes
* Adding CDROM support, including iso, client and none types
* Updating added release version for CDROM option
2017-10-11 14:29:13 +02:00
Sloane Hertel
89d09bae21
[cloud] Fix ec2_group when security group lacks a VPC ( #31526 )
2017-10-10 13:15:11 -04:00
Sloane Hertel
6fee6f71f7
aws_s3: fix upload_file's ExtraArgs - fixes #31232 ( #31487 )
...
* Module option metadata are extra arguments rather than S3 object metadata: update ExtraArgs variable.
* Remove hyphens from ExtraArgs to maintain backwards compatibility
* Map lowercase extra args to CamelCase
* Maintain backwards compatibility by guessing at content type rather than always defaulting to binary/octet-stream.
* Fix ExtraArgs for non-hyphenated options
* Simplify logic
2017-10-10 13:12:58 -04:00
arnonki
a48532de5f
Use default values for object returned from aws to prevent TypeError ( #31455 )
...
* Use default values for object returned from aws to prevent TypeError
NoneType exception fixes #31454
2017-10-10 10:08:06 -04:00
Mike Klebolt
ada6159ece
first path check missing forward slash between dcpath and datacenter ( #31481 )
...
* fixed folder path logic
* fixed folder path logic
* fixed folder path logic
2017-10-10 03:14:12 -04:00
Toshio Kuratomi
4cad720b22
Remove wildcard imports from cloudstack modules.
...
Also add boilerplate.
2017-10-09 21:41:02 -07:00
Toshio Kuratomi
75eed6a51a
Port arg specs from type='str' to type='path'
2017-10-09 21:15:56 -07:00
François Scala
aade5234a9
Fix urlparse import for Python3 ( #31240 )
...
* Fix urlparse import for Python3 in
* contrib/inventory/consul_io.py
* contrib/inventory/rudder.py
* contrib/inventory/windows_azure.py
* lib/ansible/module_utils/known_hosts.py
* lib/ansible/modules/cloud/centurylink/clc_firewall_policy.py
* lib/ansible/modules/cloud/docker/_docker.py
* lib/ansible/modules/cloud/ovirt/ovirt_disk.py
* lib/ansible/plugins/action/ce_template.py
2017-10-09 20:18:09 -07:00
Prasad Katti
0c64bbcd6f
Document return values for aws_s3 ( #31158 )
...
* Document return values for aws_s3
2017-10-10 09:26:42 +10:00