Toshio Kuratomi
0fe99f20d9
Emit an error message if six is not installed.
...
dopy 0.3.7 makes use of six but doesn't list it as a requirement. This
means that people installing with pip won't get six installed, leading
to errors. Upstream released dopy-0.3.7a to address that but pip thinks
that is an alpha release. pip does not install alpha releases by
default so users aren't helped by that.
This change makes ansible emit a good error message in this case.
Fixes #4613
2016-12-08 11:25:19 -05:00
Toshio Kuratomi
064c381608
Fix exception hierarchy for digital ocean and some cleanups of pep8 style
...
Fixes #4613
2016-12-08 11:25:19 -05:00
Matt Clay
6cdcf09984
Remove duplicate keys from module docs. ( #4920 )
2016-12-08 11:25:11 -05:00
Harnek Sidhu
422edfcbd4
Created digital_ocean_block_storage module ( #4469 )
2016-12-08 11:25:10 -05:00
John R Barker
89529366bf
digital_ocean_tag name is a required field
...
Spotted during final review of https://github.com/ansible/ansible-modules-core/pull/4218/files
Simple to change, so fixing post merge
2016-12-08 11:24:55 -05:00
Victor Volle
6a20e6649d
Digitalocean tags (replaces #4209 ) ( #4218 )
...
* Fixes #4117 : Add DigitalOcean Tag support
* Add GPLv3 license header and RETURN documentation
* ansible.module_utils.urls instead of "requests"
2016-12-08 11:24:55 -05:00
Matías Pizarro
c1dae481e8
Use named parameters in new_droplet method call ( #4483 )
...
This mirrors the original method signature and guards against any
change in order parameter
2016-12-08 11:24:54 -05:00
nishiokay
fc79615e38
Add ipv6 paramater to digital_ocean module ( #4447 )
2016-12-08 11:24:51 -05:00
Andrei Lukovenko
436ff356e7
Bug: repeatable invocation with state=present leads to ( #3052 )
...
[localhost]: FAILED! => {"changed": false, "failed": true, "msg":
"'Domain' object has no attribute 'id'"}
How to reproduce:
- name: create domain
digital_ocean_domain: state=present name=DOMAIN_NAME ip=DROPLET_IP
- name: create domain
digital_ocean_domain: state=present name=DOMAIN_NAME ip=DROPLET_IP
Problem: DigitalOcean API changed API
(https://developers.digitalocean.com/documentation/v2/#list-all-domain-records )
2016-12-08 11:24:44 -05:00
Andrei Lukovenko
85bd975238
Bug: invocation with state=absent always leads to ( #3051 )
...
[localhost]: FAILED! => {"changed": false, "failed": true, "msg":
"'Domain' object has no attribute 'id'"}
How to reproduce:
- name: create domain
digital_ocean_domain: state=present name=DOMAIN_NAME ip=DROPLET_IP
- name: destroy domain
digital_ocean_domain: state=absent name=DOMAIN_NAME
Problem: DigitalOcean API accepts domain name, not record ID
(https://developers.digitalocean.com/documentation/v2/#delete-a-domain )
2016-12-08 11:24:42 -05:00
@
c3aab8ddcf
Fixing compile time error exception handling for python 3. ( #3843 )
2016-12-08 11:24:34 -05:00
Mike Caspar
ea8097a821
Documentation updates to use complete YAML : syntax instead of key=val syntax. Adjusted example to use "" where appropriate to pass YAML Syntax checker per Contribution guidelines.
...
See Issue [# 2879](https://github.com/ansible/ansible-modules-core/issues/2879 )
2016-12-08 11:24:05 -05:00
James Cammarata
de082490db
Fixing user_data version_added
...
Fixes #2634
2016-12-08 11:24:03 -05:00
Brian Coca
b30438f2c8
updated docs to denote retirement of v1 api and clarify when and why auth fields have changed
2016-12-08 11:23:49 -05:00
Lippy Lee
2ce1f87bf8
Make digital_ocean_domain use API v2
2016-12-08 11:23:49 -05:00
Brian Coca
1c1c8d0854
doc updates - added version_added to new api_token - updated notes to explain API issues, option switch and versions affected.
2016-12-08 11:23:49 -05:00
Kamil Madac
08a2f01a5f
Fixed bug, when MX records pointed to ORIGIN(@) caused unintentional change of random A record.
2016-12-08 11:23:29 -05:00
Greg DeKoenigsberg
18ca7aee07
Updating cloud modules with proper github author information
2016-12-08 11:23:07 -05:00
Toshio Kuratomi
5336217649
Several cleanups to many modules:
...
* Fix docs to specify when python2.6+ is required (due to a library
dep). This helps us know when it is okay to use python2.6+ syntax in
the file.
* remove BabyJson returns. See #1211 This commit fixes all but the
openstack modules.
* Use if __name__ == '__main__' to only run the main part of the module
if the module is run as a program. This allows for the potential to
unittest the code later.
2016-12-08 11:22:58 -05:00
Romain Dartigues
cf86c9b29f
Issue #1161 DigitalOcean API 2 ssh_key_ids problem
...
* fix documentation: show a valid syntax
* make ssh_key_ids a list and not a string
2016-12-08 11:22:55 -05:00
Tor Åke Fransson
459fd81435
Remove all reference to obsolete client_id and rename api_key to the for v2 more correct api_token
2016-12-08 11:22:52 -05:00
Tor Åke Fransson
02883a460b
Make digital_ocean ssh command use API v2
2016-12-08 11:22:52 -05:00
Tor Åke Fransson
5faa882138
WIP: DigitalOcean API version 2 with user_data option
2016-12-08 11:22:52 -05:00
Achilleas Pipinellis
302c6f9b82
Add note about using version 1 of DigitalOcean API.
2016-12-08 11:22:45 -05:00
Edward
bad5aafd30
Fixes #816 Backups not enabled on new droplets.
...
Convert backups_enabled string to lowercase. Similar to fix for private
networking.
2016-12-08 11:22:43 -05:00
Ryan Rawson
e318ef2d70
Fixes #581 - digitalocean module cannot create private_networking=true droplets
2016-12-08 11:22:39 -05:00
Sam Kottler
bb9c7acc2f
Remove trailing whitespace in digital_ocean_domain
2016-12-08 11:22:27 -05:00
Nejc Zupan
442c8a5457
digital ocean: Remove unsupported states
2016-12-08 11:22:27 -05:00
Brian Coca
5a467bc72c
added __init__.py to new cloud subcategories so builds work again
2016-12-08 11:22:25 -05:00
Brian Coca
32e85c0944
made subcategories for cloud modules for better organization
2016-12-08 11:22:24 -05:00
Michael DeHaan
213e518165
file extensions!
2016-12-08 11:22:22 -05:00
Michael DeHaan
c7eec45b73
Restructuring.
2016-12-08 11:22:22 -05:00