Commit Graph

847 Commits (9ba2f0f2669407bc34b9bec0c81a303010822667)

Author SHA1 Message Date
Hiroaki Nakamura e3c402ada3 Remove debug parameter and add logs in return object when invoked with -vvvv 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 25ed6a7564 Fix sending request 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 364ad3b8e5 Remove support for type=profile from lxd_container module 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura be391b4d1f Add lxd_profile module 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 9d13552999 Create LXDClient and LXDClientException 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 4630540ca9 Unify unix_socket_path and url to the url parameter 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 008dd0236d Use metadata.err for error msg and return logs only when debug is true 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura c671ff5fda Add debug parameetr and put logs in result when debug is true or module failed 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 42401ea2c3 Use timeout only for chaging state and getting IPv4 addresses 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 22957e79f6 Check argument choices according to type value 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura bb69e7030c Add support for connecting via https with a client certificate 2016-12-08 11:34:30 -05:00
jpic 684291d461 s/_needs_to_change_config/_needs_to_change_container_config/ 2016-12-08 11:34:30 -05:00
Hiroaki Nakamura 1079de804c Support for creating, modifying, renaming and deleting a profile 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura d26c84d620 Fix invalid YAML in document 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura a0bf88f60a Split config parameter to config, devices, profiles, source et al 2016-12-08 11:34:29 -05:00
jpic 776a748eb4 Can't use super on old style classes 2016-12-08 11:34:29 -05:00
jpic a982b95846 Refactor 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura c00de7b3c9 Expand tab with 8 spaces 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura dd19f6d61b No meaningful change just to trigger Travis 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura 2b982c8345 Remove sample of logs in returned object 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura 82948398bd Use httplib instead of requests_unixsocket 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura f9b5075187 Add documentation about logs in returned object 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura e151e5324e Fix bug in comparing config 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura 53fe20f1da Apply config to the existing container 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura 8756a79a54 Remove dependency to pylxd and use requests_unixsocket directly 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura f7dcadeb07 Update document about copying files to containers 2016-12-08 11:34:29 -05:00
jpic 156a711753 Remove example from notes, syntax fix 2016-12-08 11:34:29 -05:00
Hiroaki Nakamura b02e805c37 Document about copying files and using an remote image 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura ff985a03ae Present clearer messages for connection error 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura c538f4d7ca Fix examples 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura a48354576e Simplify requirements 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura 8d511d6bc1 Fix English in documentation 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura 8dff16a253 Fix indent 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura 669a9838d5 Fix RETURN document to be a valid yaml 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura dc9905a8de Add __init__.py to cloud/lxd 2016-12-08 11:34:28 -05:00
Hiroaki Nakamura e69dd88681 Add lxd_container module 2016-12-08 11:34:28 -05:00
Rene Moser 04bf0542cc doc: remove common return values from various modules 2016-12-08 11:34:27 -05:00
John Kerkstra 40bedf4f83 ec2_vpc_route_table: fixes: #2377 (#2421)
fixed fatal error when propagating_vgw_ids is None
2016-12-08 11:34:27 -05:00
Andreas Nafpliotis cb43a69d8b New module: vmware_local_users_manager (#2447)
* Add files via upload

* Add files via upload

* Fixed build errors

* Fixed some identation errors

* Documentation corrections

* Documentation updates
2016-12-08 11:34:27 -05:00
nitzmahone ec8a6abd64 fix azure_rm_deployment for rc5 2016-12-08 11:34:27 -05:00
camradal fead7d5e84 Add configuration options to VMWare portgroup (#2390)
* Add configuration options to VMWare portgroup

* Add version_added to newly added vmware portgroup params

* Update vmware_porgroup to use network_policy node for settings

* Update documentation for vmware_porgroup network policy
2016-12-08 11:34:26 -05:00
Alex Lee 86b0425d52 correcting spelling mistake 2016-12-08 11:34:26 -05:00
Alex Lee 393ddc16fa adding public ip address 2016-12-08 11:34:26 -05:00
Constantin 6c89f6951c Documented returned structure. (#2510) 2016-12-08 11:34:26 -05:00
Shane Koster 3aa7e3371f Pass the lxc_path when checking if container exists (#2457)
fixes #887
2016-12-08 11:34:26 -05:00
Stephen Granger 1bcfc082e0 Included an example using the jinja 2 map function to return a list of (#2458)
subnet_ids.
2016-12-08 11:34:26 -05:00
Brad Davidson bc78913c6b New module ec2_vpc_nacl_facts 2016-12-08 11:34:26 -05:00
Javier M. Mellid a01bf7ffff Imports should be near the top of the file
Prior to 2.1, imports of module_utils was actually a preprocessor-like
substitution. So importing at the bottom helped preserve line numbers when
debugging. We'll be moving these to the top of files as time goes on.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-12-08 11:34:25 -05:00
Javier M. Mellid 04e6a207bd Adapt exception syntax to work under python3 in s3_bucket.py
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-12-08 11:34:25 -05:00
Javier M. Mellid 3c36c2b3db Add Ceph RGW S3 compatibility
Ceph Object Gateway (Ceph RGW) is an object storage interface built on top of
librados to provide applications with a RESTful gateway to Ceph Storage
Clusters:

http://docs.ceph.com/docs/master/radosgw/

This patch adds the required bits to handle buckets with the RGW S3 RESTful API
properly.

It sticks to the AWS behaviour where possible while avoiding not yet
implemented features in the Ceph RGW API.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-12-08 11:34:25 -05:00
nitzmahone 890366b67a fix ec2_vpc_vgw exception handling issues 2016-12-08 11:34:25 -05:00
Nick Aslanidis a824cd633f corrected version to 2.2. Ensure no vpc-id is returned if detached 2016-12-08 11:34:25 -05:00
Brad Davidson f4715032a9 Fix argument spec for type and tags; return VGW info instead of raw response 2016-12-08 11:34:25 -05:00
Nick Aslanidis 87a85e6c5f corrected invalid tag description for CI checks 2016-12-08 11:34:25 -05:00
Nick Aslanidis 7d41532bb2 corrected required to be bool instead of list 2016-12-08 11:34:25 -05:00
Nick Aslanidis 61668019f4 attempt to fix doc fragment 2016-12-08 11:34:25 -05:00
Nick Aslanidis 1aa4264b3a updated extends_documentation_fragment and final cr 2016-12-08 11:34:24 -05:00
naslanidis 71bb18827b Added return section to the documentation 2016-12-08 11:34:24 -05:00
naslanidis 6de163cbb2 Fixed issue with tag changes affecting vpc attach 2016-12-08 11:34:24 -05:00
Nick Aslanidis e5ead91439 New AWS module for managing ec2 VPC virtual gateways 2016-12-08 11:34:24 -05:00
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