Commit Graph

787 Commits (2e1ce01dff9b7a13b3d4c3a1365f866fa243767d)

Author SHA1 Message Date
Stefan Horning 14f488f8b6 Get EIP association information for ENI if EIP is associated (#2082) 2016-12-08 11:34:24 -05:00
René Moser 668f01c04c cloudstack: cs_volume: fix volume may be NoneType in check_mode (#2455) 2016-12-08 11:34:24 -05:00
Baptiste Mille-Mathias e235f88a91 Implement mounts in proxmox module (#2426)
* Implement mounts in proxmox module

mounts in proxmox are the additionnal disk devices set in a guests.
We handle the mounts the same way that netif devices, using a
dictionnary with keys being mp0, mp1,…

* Add version_added

Seems to be a requirement but I didn't see that anywhere.
Hope it'll fix the travis-ci issue
2016-12-08 11:34:24 -05:00
Rob 89d0ff1f17 Add boto3 support to ec2_eni_facts (#2425) 2016-12-08 11:34:23 -05:00
Bede Carroll 53f9c2ca57 Add vMotion Module (#2342) 2016-12-08 11:34:23 -05:00
Constantin a5515e8490 Added block_device_mapping in the returned output (#1553) 2016-12-08 11:34:23 -05:00
Rene Moser b85b4de4e9 cloudstack: move duplicate common code to utils 2016-12-08 11:34:23 -05:00
Rene Moser 35b699b99c cloudstack: cs_staticnat: fix static nat was always changed (disabled/enabled)
Fixes firewall rules get lost after use of cs_staticnat.
2016-12-08 11:34:23 -05:00
Rene Moser 43bee0b890 cloudstack: use has_changed() from utils 2016-12-08 11:34:23 -05:00
Rene Moser aca98e2f8e cloudstack: use poll_job() from utils 2016-12-08 11:34:23 -05:00
Rene Moser 03d3baa164 cloudstack: cs_cluster: overhaul code style 2016-12-08 11:34:22 -05:00
Rene Moser 4d26762b34 cloudstack: cs_affinitygroup: overhaul code style 2016-12-08 11:34:22 -05:00
Rene Moser f9be547a87 cloudstack: cs_account: overhaul code style 2016-12-08 11:34:22 -05:00
Rene Moser 29f803b16a cloudstack: remove duplicate import cs handling, already in utils. 2016-12-08 11:34:22 -05:00
Rene Moser 0953ef753d cloudstack: cs_project: fix state=active/suspended does not create/update project 2016-12-08 11:34:22 -05:00
Rene Moser 9d79c1ec59 cloudstack: cs_project: add tag support 2016-12-08 11:34:22 -05:00
sxpert 8e4e0dab63 Virt net mods batch 1 (#1686)
* add a new modify command

for now, allows adding or modifying hosts in the dhcp subsystem

* fix some pep8 things that escaped

* add modify in the list in the doc

* added mention of adding modify in version 2.1

* handle the test mode case for modify

* modify the code for finer check mode support
2016-12-08 11:34:22 -05:00
Rob 7e70ef2223 Use helper function for new module and rename (#2277) 2016-12-08 11:34:21 -05:00
SamYaple 8c934abfd5 Create OpenStack identity services module
New module using shade to create and manage OpenStack identity
services
2016-12-08 11:34:21 -05:00
nitzmahone 6325f91336 remove duplicate deployment_mode docstring
submodule ref wasn't updated, so missed that this had recently been added
2016-12-08 11:34:21 -05:00
nitzmahone 1b4a458417 various fixes to azure_rm_deployment
bugfix for lost results on incomplete poll (sub-optimal, but works)
add docs for undocumented module args (will temporarily break module validator)
2016-12-08 11:34:21 -05:00
Laurent Mazuel 23e0c6246b Adapt Code to Azure SDK 2.0.0RC4 (#2319) 2016-12-08 11:34:20 -05:00
René Moser 25b79bafd2 cloudstack: cs_snapshot_policy: remove unused arg specs and doc cleanup (#2361) 2016-12-08 11:34:20 -05:00
Nicolas Boutet 25e2a933d0 Fix typo in documentation (#2359) 2016-12-08 11:34:19 -05:00
trondhindenes 012070c3cd azure_rm_deploy docfix (#2354) 2016-12-08 11:34:19 -05:00
Stefan Horning 2cf50cb971 Streamlined ec2_elb_facts module return values with naming in ec2_elb… (#2081)
* Streamlined ec2_elb_facts module return values with naming in ec2_elb_lb (hosted zones)

* Keep the old return values for hosted zone to keep backwards compatibility
2016-12-08 11:34:19 -05:00
René Moser 4f09e2caab cloudstack: cs_ip_address: add vpc support (#2283)
* cloudstack: cs_ip_address: add vpc support

* cloudstack: cs_ip_address: remove unused/unreachable code
2016-12-08 11:34:19 -05:00
René Moser e9642a6de7 cloudstack: cs_staticnat: add vpc support (#2285)
* cloudstack: cs_staticnat: add network arg, used for VPC support

* cloudstack: cs_staticnat: removed unused code
2016-12-08 11:34:19 -05:00
René Moser 28648f6434 cloudstack: cs_firewall: get_network moved to utils, cleanup (#2293) 2016-12-08 11:34:19 -05:00
René Moser 8ac52fbb2c cloudstack: cs_template: fix typos (#2294) 2016-12-08 11:34:18 -05:00
René Moser 652b50753d cloudstack: new module cs_snapshot_policy (#2303) 2016-12-08 11:34:18 -05:00
Toshio Kuratomi 38c5a0067e Fix python3 syntax compilation 2016-12-08 11:34:18 -05:00
Mike Mochan 8472ef95e5 update remote tags if changed 2016-12-08 11:34:18 -05:00
Mike Mochan f39c98b8fc added tagging for the remote account 2016-12-08 11:34:18 -05:00
Mike Mochan 7acd9c0e34 Updates to version and requirements 2016-12-08 11:34:18 -05:00
Mike Mochan c1ccc831e8 Added tagging functionality 2016-12-08 11:34:17 -05:00
Mike Mochan 1b170a145e All calls to describe_vpc_peering_connections need to use the params dict 2016-12-08 11:34:17 -05:00
Mike Mochan 439c4aa979 Remove unused vars and pass params dict to describe_peering_connections 2016-12-08 11:34:17 -05:00
Mike Mochan deaf40d942 update to capture peer status 2016-12-08 11:34:17 -05:00
Mike Mochan 985e485706 removed obsolete ec2 resource object 2016-12-08 11:34:17 -05:00
Mike Mochan 5963fc4641 refactored to use dict invocation for calling client peerings functions 2016-12-08 11:34:17 -05:00
Mike Mochan 64f947a327 updates to Documentation - Removed refs to Boto, added params dict() and removed obsolete if statements 2016-12-08 11:34:17 -05:00
Mike Mochan 655d08f62f cloud/amazon/ec2_vpc_peer.py 2016-12-08 11:34:17 -05:00
Mike Mochan 842b347c7e removed debug package 2016-12-08 11:34:17 -05:00
Mike Mochan 39a132a44e Version added, GPLv3 License header added 2016-12-08 11:34:17 -05:00
Mike Mochan a6814e0774 Initial commit for cross account VPC peering module 2016-12-08 11:34:17 -05:00
Toshio Kuratomi 0d51743e23 Add __init__.py and update version_added to fix module for ansible-validate checks 2016-12-08 11:34:16 -05:00
Fernando José Pando 65bae8f76b fixup sns topic subscriptions (#2232)
* fixup sns topic subscriptions

* return docs
2016-12-08 11:34:16 -05:00
Mike Mochan 275210b06e New AWS module for managing VPC Network ACLs (#1502)
* New AWS module for managing VPC Networks ACLs

Moved return  outside of try block

botocore.exceptions to support python 2.5

For some reason Travis is using Python V2.4 to run the tests - My code is valid

duplicate file

* Fixed NameError Exception- module not being passed when calling some boto3 client methods

* Fixes a bug reported by @dennisconrad, where the nacl is not created when subnets list is empty

* nacl property changed to name and fixes a bug where nacl is not deleted when subnets list is empty

* Updates to version and requirements

* Fix 'vpc' param to 'vpc_id' to match documentation and convention
2016-12-08 11:34:16 -05:00
Ryan Sydnor e6d5c41f73 Add encryption capability to AMI copy (#1409) 2016-12-08 11:34:16 -05:00
Brian Coca 13cf09f949 added return docs 2016-12-08 11:34:16 -05:00
Adam Števko da95dd5652 Add module for retrieving SmartOS image facts (#1276) 2016-12-08 11:34:16 -05:00
Rob 716e1576d4 Add section on how to return boto3 CamelCased results (#2279) 2016-12-08 11:34:16 -05:00
Mariano Lasala 79c24ff30d Update sl_vm.py (#2267)
There was a mistype in DATACENTER list with 'lon2', changed to 'lon02'.
2016-12-08 11:34:16 -05:00
René Moser a9bc509a96 softlayer: fix module name in doc (#2266) 2016-12-08 11:34:15 -05:00
Rob 9064aecaed Add idempotence to ec2_eni when private_ip_address is supplied (#2172) 2016-12-08 11:34:15 -05:00
Victor Costan 2b6dd0e735 Add sts_session_token module for short-lived AWS credentials. (#1988) 2016-12-08 11:34:15 -05:00
Victor Costan a5940c2a5f Add aws_mfa_devices module for multi-factor authentication on AWS. (#1987) 2016-12-08 11:34:15 -05:00
Toshio Kuratomi 53de945741 Move the import of get_exception to pycompat24 2016-12-08 11:34:15 -05:00
kubilus1 f3d248de9a Check to see existence of same named/location system before creation. (#2150) 2016-12-08 11:34:15 -05:00
Toshio Kuratomi e1eb982930 Port vspherer_copy to pass syntax checks on python3 2016-12-08 11:34:15 -05:00
Michael Scherer 02518b2b72 Port vca_nat and vca_fw to py3 compatible syntax (#2243)
Since they both depend on library that cannot run on python2.4,
cf https://github.com/ansible/ansible/pull/15870, we can use
directly the python 2.6 syntax, as seen on the porting doc.
2016-12-08 11:34:15 -05:00
Michael Scherer d7ac2a8499 Use a python3 compatible notation for octal (#2238) 2016-12-08 11:34:15 -05:00
Rene Moser f90ac2c9de cloudstack: new module cs_router 2016-12-08 11:34:14 -05:00
Constantin ff592dacc5 Added support for Standard - Infrequent Access stoarage class (#2134) 2016-12-08 11:34:14 -05:00
Rob 94e7fae06a Added better example for boto3 exception handling (#2204) 2016-12-08 11:34:13 -05:00
Michael Baydoun 5e3c3741dd created ec2_customer_gateway module (#1868) 2016-12-08 11:34:13 -05:00
Ash Berlin bb42a6bcac Add missing urlparse import to s3_bucket (#2110)
This was triggered when S3_URL environment variable was set.
2016-12-08 11:34:13 -05:00
René Moser 99bf53ea9a cs_loadbalancer_rule_member: doc fixes (#2184) 2016-12-08 11:34:13 -05:00
Nik LaBelle 3ecf8dc12b change netif type to dict and update example (#2187) 2016-12-08 11:34:13 -05:00
Matt Martz 577f56ac79 Fix HAS_BOTO fail_json call for ec2_ami_copy 2016-12-08 11:34:13 -05:00
Rob aa36ed8612 Add secondary IP support and allow specifying sec groups by name (#2161) 2016-12-08 11:34:12 -05:00
Lakshmi Balu 1d236b0204 Update vmware_datacenter.py (#2164)
Fixed the syntac issue variable references before definiton
2016-12-08 11:34:12 -05:00
René Moser 96f337ac47 cs_template: fix missing docs (#2165) 2016-12-08 11:34:12 -05:00
Rob 09b7470983 Added doc for new get_ec2_security_group_ids_from_names function in m… 2016-12-08 11:34:11 -05:00
Toshio Kuratomi 7212bc294e Fix documentation 2016-12-08 11:34:11 -05:00
krzwalko a7fe4cee03 Fix datacenter_name and cluster_name module params (#2142) 2016-12-08 11:34:11 -05:00
Rene Moser 87e975776a azure_rm_deployment: fix docs and move import utils near main()
fixes build
2016-12-08 11:34:11 -05:00
chouseknecht ff624f9ef4 Updated per PR comments 2016-12-08 11:34:10 -05:00
chouseknecht 1d7a109867 Rename azure_deploy to azure_rm_deployment. Refactor to use azure_common. 2016-12-08 11:34:10 -05:00
Michael Scherer 2ec17e4614 Add partial doc on return value of virt (#2116) 2016-12-08 11:34:10 -05:00
Brian Coca 954d650e6a promoted to core, including fixes 2016-12-08 11:34:09 -05:00
James Cammarata fa0c10017e Removing docker_login as it's now in core 2016-12-08 11:34:09 -05:00
Joshua Gilman c0a677aa3a Change disk type to str to allow correct usage of rootfs for LXC (#2091) 2016-12-08 11:34:09 -05:00
Adrià Galín Figueras d802e00417 Fixed netif params when create lxc container (#2064) 2016-12-08 11:34:09 -05:00
Rene Moser 9e05fc35ea vmware_vm_shell: doc: add missing defaults 2016-12-08 11:34:08 -05:00
Ritesh Khadgaray 378707e1f7 vmware_vm_shell: speed up vm_name search (#1909) 2016-12-08 11:34:08 -05:00
Toshio Kuratomi 7b1704640e Make main() only run when invoked as a script (style cleanup) 2016-12-08 11:34:08 -05:00
Laurent Mazuel 8973ecae5b Add user-agent information for analytics 2016-12-08 11:34:08 -05:00
Andre Price 28b0a52245 Get failed deployments when create fails also 2016-12-08 11:34:07 -05:00
Laurent Mazuel 098a4c9ee4 Updated to use ServicePrincipalCredentials class and get rid of requests 2016-12-08 11:34:07 -05:00
Laurent Mazuel ee6fc470db Fixes after Travis feedback 2016-12-08 11:34:07 -05:00
Laurent Mazuel 771c40952b Py2.6 compatible + minor fixes 2016-12-08 11:34:07 -05:00
Laurent Mazuel 96ea53d1f2 Fix YAML documentation 2016-12-08 11:34:07 -05:00
Laurent Mazuel 5d5cac57ff Add update from @obsoleted 2016-12-08 11:34:07 -05:00
Laurent Mazuel 801c44df9e Azure plugin using Azure Python SDK 2.0.0rc1 2016-12-08 11:34:07 -05:00
David Justice a4cc8dfa2c add azure resource manager template deployment module 2016-12-08 11:34:07 -05:00
Rob 1d01d232a9 New module - ec2_snapshot_facts (#1088) 2016-12-08 11:34:07 -05:00
Victor Costan e5742c3a47 amazon/GUIDELINES.md: Fix copy-paste typo (#2060) 2016-12-08 11:34:07 -05:00
Jay Jahns 09aa205209 Add Maintenance Mode support for VMware (#1754)
* add vmware maintenance mode support

* changed version number in documentation

* updated version_added to 2.0 since CI is failing

* changed version to 2.0 due to CI - error asking for 2.1

* added RETURN

* updated formatting of return values and added some to clarify actions taken
2016-12-08 11:34:06 -05:00
Karim Boumedhel e57ef71ed3 Add cloudinit support to ovirt.py module 2016-12-08 11:34:06 -05:00
Michael Scherer 567bcf1341 Do not leak password by error for ovirt module (#1991) 2016-12-08 11:34:06 -05:00
Fernando José Pando 94c5e16fe3 Add SQS queue policy attachment functionality (#1716)
* Add SQS queue policy attachment functionality

SQS queue has no attribute 'Policy' until one is attached, so this special
case must be handled uniquely

SQS queue Policy can now be passed in as json
2016-12-08 11:34:06 -05:00
Michael Scherer a7b843ca80 Use type=path for pem_file, since that's a file (#1934) 2016-12-08 11:34:06 -05:00
Evgeni Golov 3bbef8dc24 fix handling of config options that share the same prefix
container_config:
      - "lxc.network.ipv4.gateway=auto"
      - "lxc.network.ipv4=192.0.2.1"

might try to override lxc.network.ipv4.gateway in the second entry as both
start with "lxc.network.ipv4".
use a regular expression to find a line that contains (optional) whitespace
and an = after the key.

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-12-08 11:34:06 -05:00
Evgeni Golov 317ca77193 strip whitespace from key and value before inserting it into the config
before the following would produce four entries:

    container_config:
      - "lxc.network.flags=up"
      - "lxc.network.flags =up"
      - "lxc.network.flags= up"
      - "lxc.network.flags = up"

let's strip the whitespace and insert only one "lxc.network.flags = up"
into the final config

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-12-08 11:34:06 -05:00
Ricardo Carrillo Cruz eda5e2f571 Add os_project_facts module
This module gathers facts about OpenStack projects
2016-12-08 11:34:05 -05:00
Jens Carl cf804fb0b8 Fix code example (#2018) 2016-12-08 11:34:05 -05:00
René Moser 5197654437 cloudstack, cs_firewall: fix network not found error in return results (#2006)
Only a small issue in results.

In case of type is ingress, we rely on ip address, but in results we also return the network.
Resolving the ip address works without zone params. If the ip address is not located in the default zone and zone param is not set,
the network won't be found because default zone was used for the network query listing.

However since network param is not used for type ingress we skip the return of the network in results.
2016-12-08 11:34:05 -05:00
René Moser d7e8dd22df cloudstack: cs_instance: fix template not found (#2005)
Let users decide which filter should be used to find the template.
2016-12-08 11:34:05 -05:00
Rene Moser b5e4edd9f9 cloudstack: cs_template: fix state=extracted
* url arg is optional but we enforced it
* url is in a required together, but args only relevant while registering
2016-12-08 11:34:05 -05:00
Rene Moser 1b99ae4ac1 cloudstack: fix doc, display_text not required 2016-12-08 11:34:05 -05:00
Rene Moser 871f586378 cloudstack: cs_template: fix cross_zones template removal 2016-12-08 11:34:05 -05:00
David Shrewsbury b928ffb5ac New OpenStack module os_port_facts (#1986) 2016-12-08 11:34:05 -05:00
Kamil Szczygieł 26fe35fd0c VMware datacenter module shouldn't hold pyvmomi context in Ansible module object (#1568)
* VMware datacenter module rewritten to don't hold pyvmomi context and objects in Ansible module object

fixed exceptions handling

added datacenter destroy result, moved checks

changed wrong value

wrong value again... need some sleep

* check_mode fixes

* state defaults to present, default changed to true

* module check fixes
2016-12-08 11:34:04 -05:00
Evgeni Golov ab07c9c7e8 do not set LXC default config
this was accidentally re-introduced in 7120fb4b

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-12-08 11:34:04 -05:00
Ricardo Carrillo Cruz 079a7dc490 Add os_user_facts module
This module gather facts about one or more OpenStack users
2016-12-08 11:34:04 -05:00
Ricardo Carrillo Cruz aba0597e45 Add os_keystone_domain_facts module
This module gathers one or more OpenStack domains facts
2016-12-08 11:34:04 -05:00
Michael Scherer 971b570b67 Do not leak passwords in case of error in cloudstack modules 2016-12-08 11:34:04 -05:00
Michael Scherer ed69d8335e Properly label path argument with type='path' (#1940) 2016-12-08 11:34:03 -05:00
Rob b93fda8573 Updated Amazon module guidelines regarding boto3
* Updated Amazon module guidelines regarding boto3

* Spelling correction
2016-12-08 11:34:03 -05:00
Andy Baker c0d281e290 type should be 'list' not the default of 'string' 2016-12-08 11:34:03 -05:00
Evgeni Golov 1847f19e41 don't create world-readable archives of LXC containers
with the default umask tar will create a world-readable archive of the

container, which may contain sensitive data

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-12-08 11:34:03 -05:00
Evgeni Golov 16b2d85d34 do not use a predictable filenames in the LXC plugin
* do not use a predictable filename for the LXC attach script

* don't use predictable filenames for LXC attach script logging

* don't set a predictable archive_path

this should prevent symlink attacks which could result in

* data corruption

* data leakage

* privilege escalation
2016-12-08 11:34:03 -05:00
Evgeni Golov 88d8820f1b explicitly set "default: null" in the docs 2016-12-08 11:34:02 -05:00
Evgeni Golov e1846d2e4b do not set a default config for lxc containers
otherwise deploying user-containers fail as these require information
from ~/.config/lxc/default.conf that the LXC tools will load if no
--config was supplied

Signed-off-by: Evgeni Golov <evgeni@golov.de>
2016-12-08 11:34:02 -05:00
Chris Porter 2b8b04638d fix security vulnerability in lxc module
octal/decimal confusion makes file world-writable before executing it
2016-12-08 11:34:02 -05:00
John Barker d20b7ee6e6 restore version_added in dynamodb_table.py 2016-12-08 11:34:01 -05:00
Rene Moser 051b11b983 openstack: doc: add return doc, fixes build 2016-12-08 11:34:01 -05:00
David Shrewsbury 33d3616bab Add OpenStack os_user_role module 2016-12-08 11:34:01 -05:00
David Shrewsbury 2dddfbe67c Add shade version check to os_flavor_facts
The range_search() API was added to the shade library in version
1.5.0 so let's check for that and let the user know they need to
upgrade if they try to use it.
2016-12-08 11:34:00 -05:00
Brian Coca 41af347d8d renamed sl to sl_vm and updated docs
namespace for softlayer modules should now be sl_
2016-12-08 11:33:59 -05:00
Matt Colton 8f444b8c4b Added Softlayer Module 2016-12-08 11:33:59 -05:00
Julia Kreger 011267c04e Add os_ironic_inspect module
Addition of an os_ironic_inspect module to leverage the OpenStack
Baremetal inspector add-on to ironic or ironic driver out-of-band
hardware introspection, if supported and configured.
2016-12-08 11:33:59 -05:00
Ricardo Carrillo Cruz ba3515bc30 Allow passing domain name on os_project 2016-12-08 11:33:59 -05:00
Rene Moser 7a28ad63f7 dynamodb_table: doc fix 2016-12-08 11:33:59 -05:00
Matt Ferrante 99c8e82b60 dynamo db indexes 2016-12-08 11:33:59 -05:00
Casey Lucas 4cd9933388 fix edge case where boto returns empty list after subnet creation 2016-12-08 11:33:59 -05:00
Dennis Conrad 0254cbad9a Fix for existing ENIs w/ multiple security groups
Do a sorted comparison of the list of security groups supplied via `module.params.get('security_groups')` and the list of security groups fetched via `get_sec_group_list(eni.groups)`.  This fixes an incorrect "The specified address is already in use" error if the order of security groups in those lists differ.
2016-12-08 11:33:58 -05:00
Rob White 7b0b4262e5 Allow SNS topics to be created without subscriptions. Also added better error handling around boto calls. 2016-12-08 11:33:58 -05:00
Fernando J Pando be083a8fbe author added 2016-12-08 11:33:58 -05:00
Fernando J Pando 6d69956f83 Fix SNS topic attribute typo
Enables adding SNS topic policy. 'Policy' attribute is capitalized.
2016-12-08 11:33:58 -05:00
Joel Thompson 61672e5c61 Ensure ec2_win_password doesn't leak file handle
Currently the module doesn't explicitly close the file handle. This
wraps the reading of the private key in a try/finally block to ensure
the file is properly closed.
2016-12-08 11:33:58 -05:00
Rene Moser b92b30e3b3 ec2_vpc_dhcp_options: doc fix, add version_added to new args
See #1640
2016-12-08 11:33:58 -05:00
Andy Nelson 5718a5caac Updated ec2_vpc_dhcp_options 2016-12-08 11:33:57 -05:00
Darek Kaczyński 9e918b5955 Removed debug return values 2016-12-08 11:33:57 -05:00
Darek Kaczyński 7127a45d96 ecs_service will now compare whole model and update it if any difference found. Documentation #1483. Workaround for datetime fileds #1348. 2016-12-08 11:33:57 -05:00
Darek Kaczyński 9b27ed6c5d ecs_service_facts documentation fixes #1483. Workaround for datetime fileds #1348. 2016-12-08 11:33:57 -05:00
Alex Kalinin e97ca89953 Fix vmware_portgroup throwing an error if port group already exists 2016-12-08 11:33:57 -05:00
Toshio Kuratomi 5b84102a15 Doc fixes 2016-12-08 11:33:56 -05:00