Commit graph

2248 commits

Author SHA1 Message Date
pascalheraud
1972df5a71 Removed unnecessary moduleChanged=False
Added missing exceptions handling
2016-07-27 15:51:25 -07:00
pascalheraud
f7a5013083 Added a timeout param to prevent infinite loop while waiting for
completion of a task.
2016-07-27 15:51:25 -07:00
pascalheraud
37900daf79 Fixed module from review inputs :
- Caught the exception from import ovh to provide a proper message to
the user
- Removed unuseful brackets
- Added a else to check the state instead of two if
- Changed the module to be added to 2.0
- Added exceptions handling for all APIs calls with a clear message
including the return from the API.

And : 
- Fixed dependency of OVH api to 0.3.5
2016-07-27 15:51:25 -07:00
pascalheraud
a767da1139 Added OVH Ip loadbalancing module for managing backends 2016-07-27 15:51:25 -07:00
Ricardo Carrillo Cruz
8ad0c52a82 Add os_zone module (#2173)
This module allows to create OpenStack Designate zone objects
2016-07-27 18:27:20 -04:00
Ricardo Carrillo Cruz
866b04784d Add os_recordset module (#2240)
This module allows to manage OpenStack Designate recordsets.
2016-07-27 18:27:05 -04:00
Brian Coca
6402d36af3 now using type=json which takes care of str/dict 2016-07-27 11:39:09 -04:00
Brian Coca
df79ca6352 fixes and refactoring of s3_bucket
policy should now accept and handle correctly both data structures or JSON strings
removed unused tag_set var
refactored code to make conditions clearer
rebased to allow for ceph changes, left ceph update on todo list
2016-07-27 11:39:09 -04:00
Kaz Cheng
db979dde74 Fix a number of issues around detecting nat gateways, how (#1511)
routes_to_delete is detected, propagating_vgw_ids and checking if
gateway_id exists.
2016-07-25 21:48:27 +02:00
Alvaro Aleman
b02a24ffed Ensure os_project checks the right domain (#2519) 2016-07-25 14:05:58 -04:00
Matt Clay
651a25f1a3 Remove duplicate requirements. 2016-07-21 13:04:15 -04:00
Alvaro Aleman
7bc7f9f078 Make os_user_role respect domain when querying for projects (#2520) 2016-07-21 11:40:57 -04:00
lorijoan
38d364103d Update cs_volume module to fix typo on force attribute (#2592)
fixes #2590
2016-07-20 13:57:35 +02:00
Allen Sanabria
e9f7fb0927 Now when number of shards is different than what is the stream currently, it will fail.\n\nShards can not be changed on an already created stream 2016-07-14 16:57:47 -07:00
Allen Sanabria
8a17506058 version bump 2016-07-14 13:46:57 -07:00
Allen Sanabria
7cacd7dd2a Module requires boto due to ec2.py 2016-07-14 13:46:57 -07:00
Allen Sanabria
72988aab14 updated module to accept check_mode in every boto call 2016-07-14 13:46:57 -07:00
Allen Sanabria
8c1277a8b7 Removed test as they will not be ran by Ansible.
* I will include tests in my personal repo which will contain all
modules written by me with their associated tests.
2016-07-14 13:46:57 -07:00
Allen Sanabria
988f468457 Added test to kinesis_stream module.
* Update kinesis_stream based on tests.
* Added tests for kinesis_stream.
2016-07-14 13:46:57 -07:00
Allen Sanabria
514e285d1a update doc string 2016-07-14 13:46:57 -07:00
Allen Sanabria
4e1c3a58b3 Create, Delete, and Modify a Kinesis Stream.
* Create a Kinesis Stream.
* Tag a Kinesis Stream.
* Update the Retention Period of a Kinesis Stream.
* Delete a Kinesis Stream.
* Wait for a Kinesis Stream to be in an ACTIVE State.
2016-07-14 13:46:57 -07:00
Ryan S. Brown
1a7d26a1b8 iam_server_certificate_facts: Correct call to get_server_certs 2016-07-14 16:24:51 -04:00
Allen Sanabria
f36ec115fc iam_server_certificate_facts: list all certs
If a server name isn't passed, retrieve all server certificates by
default. Change return value to a dict with the server_cert_name being
the key.
2016-07-14 16:23:49 -04:00
Allen Sanabria
4615a6cc76 iam_server_certificate_facts: change except to python 2.6 syntax 2016-07-14 16:22:40 -04:00
Allen Sanabria
c574dbee54 iam_server_certificate_facts: Retrieve attributes from server certificate
This module will allow you to retrieve all the attributes
related to a server certificate.
2016-07-14 16:22:21 -04:00
mathieu bultel
c6a45234e0 Add os_stack module for create, update and delete stack (#2002)
* Add os_stack module for create and delete stack

* Add ansible module for creating and deleting heat stack
* Parameters:
  - stack name
  - template
  - environment_files (list)
  - parameters (dict)
  - timeout
  - rollback
  - state: In a near futur I would like to improve
    this module by providing a way updating the stack
    if already exist. Shade doesn't offer this functionality
    AFAIK

* Add update stack feature

* Update added_version and return doc

* Add copyright for os_stack module

* Add wait user choice and minor fixes

* Remove Todo for Shade 1.8.0 and bad line example

* Add documentation for the return values

* Fix type on return value

* Fix yaml syntax

* Cast message to string instead

* add missing check mode
2016-07-11 13:36:00 -04:00
René Moser
a99464f545 Merge pull request #2208 from hnakamur/lxd_container
Add lxd_container module
2016-07-09 10:41:25 +02:00
Rene Moser
5a3dc054bd doc: remove common return values from various modules 2016-07-08 10:54:31 +02:00
John Kerkstra
d5ebe033e3 ec2_vpc_route_table: fixes: #2377 (#2421)
fixed fatal error when propagating_vgw_ids is None
2016-07-08 00:43:12 +02:00
Andreas Nafpliotis
47b9ede3be 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-07-08 00:39:59 +02:00
nitzmahone
8502d2595a fix azure_rm_deployment for rc5 2016-07-07 10:56:57 -07:00
Hiroaki Nakamura
c320caf285 Fix lxd_container and lxd_profile document to be rendered properly 2016-07-07 00:34:51 +09:00
Hiroaki Nakamura
afbaffa1c5 Change command to check python is installed 2016-07-05 21:37:41 +09:00
Hiroaki Nakamura
dcee274ebb Fix initializing err in _get_err_from_resp_json 2016-07-05 21:34:27 +09:00
camradal
5588cc9c02 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-07-03 10:49:42 +02:00
Abhijit Menon-Sen
dcb1ab6bed Merge pull request #1509 from hslee16/devel
adding public ip address to ec2_remote_facts
2016-07-02 15:02:23 +05:30
Hiroaki Nakamura
0140e50d55 Remove debug parameter and add logs in return object when invoked with -vvvv 2016-07-01 23:23:14 +09:00
Constantin
602915c264 Documented returned structure. (#2510) 2016-07-01 10:56:03 +02:00
Hiroaki Nakamura
0b55ce4cc3 Fix sending request 2016-07-01 01:32:47 +09:00
Hiroaki Nakamura
7662401f45 Remove support for type=profile from lxd_container module 2016-07-01 00:42:50 +09:00
Hiroaki Nakamura
f3ec45d270 Add lxd_profile module 2016-07-01 00:28:21 +09:00
Hiroaki Nakamura
7d930930e8 Create LXDClient and LXDClientException 2016-07-01 00:03:46 +09:00
Hiroaki Nakamura
8ba41ee6a2 Unify unix_socket_path and url to the url parameter 2016-06-30 22:36:58 +09:00
Hiroaki Nakamura
cc8b54d3cc Use metadata.err for error msg and return logs only when debug is true 2016-06-30 21:42:05 +09:00
Hiroaki Nakamura
308e0984f7 Add debug parameetr and put logs in result when debug is true or module failed 2016-06-30 21:14:48 +09:00
Hiroaki Nakamura
5dc0b934eb Use timeout only for chaging state and getting IPv4 addresses 2016-06-30 21:02:16 +09:00
Shane Koster
9231241c8b Pass the lxc_path when checking if container exists (#2457)
fixes #887
2016-06-30 07:17:49 +02:00
Stephen Granger
2490f87522 Included an example using the jinja 2 map function to return a list of (#2458)
subnet_ids.
2016-06-30 07:16:05 +02:00
Hiroaki Nakamura
eb7488854b Check argument choices according to type value 2016-06-30 01:59:37 +09:00
Hiroaki Nakamura
61020a87dd Add support for connecting via https with a client certificate 2016-06-30 01:03:21 +09:00
jpic
3afe1dcef5 s/_needs_to_change_config/_needs_to_change_container_config/ 2016-06-29 15:00:53 +02:00
Hiroaki Nakamura
c82cfe8d28 Support for creating, modifying, renaming and deleting a profile 2016-06-29 00:24:56 +09:00
Hiroaki Nakamura
fd9a6a7f26 Fix invalid YAML in document 2016-06-28 23:02:08 +09:00
Hiroaki Nakamura
f46d3086d6 Split config parameter to config, devices, profiles, source et al 2016-06-28 22:52:40 +09:00
jpic
7ba6915b49 Can't use super on old style classes 2016-06-28 12:38:40 +02:00
Brad Davidson
8319d935ca New module ec2_vpc_nacl_facts 2016-06-27 12:36:33 -07:00
Ryan Brown
ac8e3f18a3 Merge pull request #1599 from jmunhoz/s3-bucket-ceph
Add Ceph RGW S3 compatibility
2016-06-27 13:14:07 -04:00
jpic
f68c1a1071 Refactor 2016-06-27 13:35:19 +02:00
Hiroaki Nakamura
3046332031 Expand tab with 8 spaces 2016-06-26 09:20:49 +09:00
Hiroaki Nakamura
e4d02a6a91 No meaningful change just to trigger Travis 2016-06-26 09:15:06 +09:00
Hiroaki Nakamura
6d0a3d7227 Remove sample of logs in returned object 2016-06-26 09:03:35 +09:00
Hiroaki Nakamura
2ee5c04335 Use httplib instead of requests_unixsocket 2016-06-26 08:57:32 +09:00
Hiroaki Nakamura
82302e80d4 Add documentation about logs in returned object 2016-06-26 08:57:32 +09:00
Hiroaki Nakamura
cf6e3b9ea8 Fix bug in comparing config 2016-06-26 08:57:32 +09:00
Hiroaki Nakamura
f78e6f49e8 Apply config to the existing container 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
f786a3e113 Remove dependency to pylxd and use requests_unixsocket directly 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
05700edc0b Update document about copying files to containers 2016-06-26 08:57:31 +09:00
jpic
d2fa7c75da Remove example from notes, syntax fix 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
5da4699f83 Document about copying files and using an remote image 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
53f482308d Present clearer messages for connection error 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
9a8d1253fa Fix examples 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
95f5a3550a Simplify requirements 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
ed47f57598 Fix English in documentation 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
3e8fa8ef82 Fix indent 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
f72b0288c0 Fix RETURN document to be a valid yaml 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
5e10ca5c3d Add __init__.py to cloud/lxd 2016-06-26 08:57:31 +09:00
Hiroaki Nakamura
76f4a1c5d8 Add lxd_container module 2016-06-26 08:57:31 +09:00
nitzmahone
709114d55f fix ec2_vpc_vgw exception handling issues 2016-06-22 17:26:41 -07:00
James Cammarata
d5a3f5ec5f Merge pull request #1709 from naslanidis/new_aws_module_ec2_vpc_vgw
New aws module for ec2 vpc virtual gateways
2016-06-22 13:39:50 -05:00
Stefan Horning
1da89cd5a1 Get EIP association information for ENI if EIP is associated (#2082) 2016-06-20 13:10:56 -04:00
René Moser
0daedc05f5 cloudstack: cs_volume: fix volume may be NoneType in check_mode (#2455) 2016-06-20 12:25:47 +02:00
Javier M. Mellid
2c1530b647 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-06-18 01:01:09 +02:00
Javier M. Mellid
78b4829623 Adapt exception syntax to work under python3 in s3_bucket.py
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-06-18 01:01:06 +02:00
Javier M. Mellid
a87b2e38a0 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-06-18 01:01:01 +02:00
Baptiste Mille-Mathias
6cb6829384 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-06-17 14:50:15 +02:00
Rob
65fe9eb2b0 Add boto3 support to ec2_eni_facts (#2425) 2016-06-14 22:09:54 +02:00
Bede Carroll
1e405bb472 Add vMotion Module (#2342) 2016-06-13 14:51:03 -04:00
Constantin
062c7607a4 Added block_device_mapping in the returned output (#1553) 2016-06-13 13:43:38 -04:00
René Moser
e596ad9294 Merge pull request #2388 from resmo/for-ansible-2.2
[2.2] cloudstack related changes for Ansible 2.2
2016-06-13 19:41:43 +02:00
sxpert
a82e991453 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-06-13 17:22:10 +02:00
Rene Moser
206cfb3125 cloudstack: move duplicate common code to utils 2016-06-09 22:58:09 +02:00
Rene Moser
00fe782722 cloudstack: cs_staticnat: fix static nat was always changed (disabled/enabled)
Fixes firewall rules get lost after use of cs_staticnat.
2016-06-09 22:54:25 +02:00
Rene Moser
aef2da2401 cloudstack: use has_changed() from utils 2016-06-09 22:41:32 +02:00
Rene Moser
8a235e4e53 cloudstack: use poll_job() from utils 2016-06-09 22:39:03 +02:00
Rene Moser
c693be53f5 cloudstack: cs_cluster: overhaul code style 2016-06-09 21:32:45 +02:00
Rene Moser
a3f57a8cf4 cloudstack: cs_affinitygroup: overhaul code style 2016-06-09 21:32:45 +02:00
Rene Moser
122beec048 cloudstack: cs_account: overhaul code style 2016-06-09 21:32:45 +02:00
Rene Moser
efcfe21732 cloudstack: remove duplicate import cs handling, already in utils. 2016-06-09 21:32:45 +02:00
Rene Moser
ff29da944e cloudstack: cs_project: fix state=active/suspended does not create/update project 2016-06-09 21:32:17 +02:00
Rob
0e9a820628 Use helper function for new module and rename (#2277) 2016-06-08 10:43:53 -07:00
Alex Lee
9391103f01 correcting spelling mistake 2016-06-08 08:59:35 -07:00
Alex Lee
62d7ded9ba adding public ip address 2016-06-08 08:59:35 -07:00
David Shrewsbury
1f1e15ae00 Merge pull request #1784 from SamYaple/devel
Create OpenStack identity services module
2016-06-08 10:20:44 -04:00
Rene Moser
6fd21ae67c cloudstack: cs_project: add tag support 2016-06-08 15:11:03 +02:00
nitzmahone
6ee1cfc5cf remove duplicate deployment_mode docstring
submodule ref wasn't updated, so missed that this had recently been added
2016-06-07 17:07:51 -07:00
SamYaple
9bbcc09a14 Create OpenStack identity services module
New module using shade to create and manage OpenStack identity
services
2016-06-07 19:19:01 +00:00
nitzmahone
a0bd87f04e 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-06-04 16:16:43 -07:00
Laurent Mazuel
4b4a8025e1 Adapt Code to Azure SDK 2.0.0RC4 (#2319) 2016-06-04 15:14:16 -07:00
René Moser
46df503964 cloudstack: cs_snapshot_policy: remove unused arg specs and doc cleanup (#2361) 2016-06-02 13:00:10 +02:00
Nicolas Boutet
473e5d7969 Fix typo in documentation (#2359) 2016-06-02 09:55:27 +02:00
trondhindenes
3d6da37864 azure_rm_deploy docfix (#2354) 2016-06-01 15:18:56 -04:00
Stefan Horning
8e20fcfafe 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-05-28 01:56:02 +02:00
René Moser
57e1497fcf cloudstack: cs_ip_address: add vpc support (#2283)
* cloudstack: cs_ip_address: add vpc support

* cloudstack: cs_ip_address: remove unused/unreachable code
2016-05-27 21:02:29 +02:00
René Moser
abe406f074 cloudstack: cs_staticnat: add vpc support (#2285)
* cloudstack: cs_staticnat: add network arg, used for VPC support

* cloudstack: cs_staticnat: removed unused code
2016-05-27 20:57:09 +02:00
René Moser
039005bfaa cloudstack: cs_firewall: get_network moved to utils, cleanup (#2293) 2016-05-27 20:56:00 +02:00
René Moser
5a7a9a0a30 cloudstack: cs_template: fix typos (#2294) 2016-05-27 20:55:03 +02:00
René Moser
53ffd5f82b cloudstack: new module cs_snapshot_policy (#2303) 2016-05-27 20:53:59 +02:00
Toshio Kuratomi
5b2bf6f08a Fix python3 syntax compilation 2016-05-25 11:48:16 -07:00
Mike Mochan
698d2a55c5 update remote tags if changed 2016-05-25 11:46:31 -07:00
Mike Mochan
cab7437e32 added tagging for the remote account 2016-05-25 11:46:31 -07:00
Mike Mochan
9a303f1628 Updates to version and requirements 2016-05-25 11:46:31 -07:00
Mike Mochan
2934495efc Added tagging functionality 2016-05-25 11:46:31 -07:00
Mike Mochan
a58a12fc1f All calls to describe_vpc_peering_connections need to use the params dict 2016-05-25 11:46:31 -07:00
Mike Mochan
8ab4963e78 Remove unused vars and pass params dict to describe_peering_connections 2016-05-25 11:46:31 -07:00
Mike Mochan
2291fc00d2 update to capture peer status 2016-05-25 11:46:31 -07:00
Mike Mochan
2392395a47 removed obsolete ec2 resource object 2016-05-25 11:46:31 -07:00
Mike Mochan
10ce4d8b88 refactored to use dict invocation for calling client peerings functions 2016-05-25 11:46:31 -07:00
Mike Mochan
f6c7bdf9c5 updates to Documentation - Removed refs to Boto, added params dict() and removed obsolete if statements 2016-05-25 11:46:31 -07:00
Mike Mochan
34ae687ae3 cloud/amazon/ec2_vpc_peer.py 2016-05-25 11:46:31 -07:00
Mike Mochan
f84af48733 removed debug package 2016-05-25 11:46:31 -07:00
Mike Mochan
92dea03181 Version added, GPLv3 License header added 2016-05-25 11:46:31 -07:00
Mike Mochan
400484f69f Initial commit for cross account VPC peering module 2016-05-25 11:46:30 -07:00
Toshio Kuratomi
342af8b249 Add __init__.py and update version_added to fix module for ansible-validate checks 2016-05-23 13:06:14 -07:00
Fernando José Pando
0d8eefe197 fixup sns topic subscriptions (#2232)
* fixup sns topic subscriptions

* return docs
2016-05-23 11:39:20 -04:00
Mike Mochan
6d52d84af7 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-05-23 10:42:11 -04:00
Ryan Sydnor
0ba34435cf Add encryption capability to AMI copy (#1409) 2016-05-23 10:39:02 -04:00
Brian Coca
eb6ba749c2 added return docs 2016-05-23 10:36:47 -04:00
Adam Števko
0d54d1ffe4 Add module for retrieving SmartOS image facts (#1276) 2016-05-23 10:35:55 -04:00
Rob
b9ab1f9f5c Add section on how to return boto3 CamelCased results (#2279) 2016-05-23 10:31:41 -04:00
Mariano Lasala
3d54bdd4e1 Update sl_vm.py (#2267)
There was a mistype in DATACENTER list with 'lon2', changed to 'lon02'.
2016-05-21 00:39:17 +02:00
René Moser
cdffb36642 softlayer: fix module name in doc (#2266) 2016-05-21 00:38:48 +02:00
Rob
8fb8ec2e98 Add idempotence to ec2_eni when private_ip_address is supplied (#2172) 2016-05-19 07:55:54 +02:00
Victor Costan
76dee3d872 Add sts_session_token module for short-lived AWS credentials. (#1988) 2016-05-18 11:13:49 -07:00
Victor Costan
010286aafd Add aws_mfa_devices module for multi-factor authentication on AWS. (#1987) 2016-05-18 11:10:52 -07:00
Toshio Kuratomi
2a5812a0e8 Move the import of get_exception to pycompat24 2016-05-18 06:23:10 -07:00
kubilus1
b742ab1263 Check to see existence of same named/location system before creation. (#2150) 2016-05-18 09:26:58 +02:00
Toshio Kuratomi
8ecc3d2516 Port vspherer_copy to pass syntax checks on python3 2016-05-17 10:39:23 -07:00
Michael Scherer
84ec0c8faf 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-05-17 10:34:01 -07:00
Michael Scherer
c8864c3220 Use a python3 compatible notation for octal (#2238) 2016-05-17 10:33:12 -07:00
Adrian Likins
028ef0a2fa Merge pull request #2185 from resmo/feature/cs_router
cloudstack: new module cs_router
2016-05-16 10:40:50 -04:00