Toshio Kuratomi
30a688d8d3
Update conventions in azure modules
...
* Remove wildcard imports
* Update GPL header to the one-line form
* Add from __future__ imports
2017-07-27 15:37:26 -07:00
Matt Davis
53ebe8d441
coerce azure securitygroup priority to int ( #27354 )
...
* fixes #22686
* would be better served in the future by using subspec, but it's in too much flux right now
2017-07-26 16:09:31 -07:00
Toshio Kuratomi
225fa5d092
Fix undefined variables, basestring usage, and some associated python3 issues
2017-07-25 15:58:23 -07:00
Thomas Stringer
bf63301b34
Fix bug that was uncovered by comparing the port range which is inherently a string but ansible passes the param in as an implied int if the range does not contain a non-numeric char ( #27017 )
2017-07-20 11:47:43 -04:00
Thomas Stringer
3ffe44c70d
remove param vm_id in VirtualMachine constructor call ( #22974 )
2017-07-19 17:05:46 -04:00
Adrian Likins
261c40bac7
Fix azure module use of module_utils.facts ( #25318 )
...
Module was importing '*' from facts to get to TimeoutError
but that has moved to facts.timeout, so import is updated.
Also rm old style imports to new style imports at the start
of the module.
'signal' py module was used and referenced but never imported,
presumably it was using the 'signal' previously imported into
module_utils.facts. Now imported directly.
'AnsibleModule' was also from a * import, so now imported directly.
A ref to 'module' was in _delete_disks_when_detached(), so now it
is updated to raise an AzureException() with its message, and
let its caller catch it and call module.fail_json()
2017-07-11 14:07:20 -04:00
Thomas Stringer
8026ef57fe
remove option checking for azure vm sizes (enum will not contain all) as well as default and start requiring the vm_size param ( #24406 )
2017-07-10 12:54:39 -04:00
Raja
171d903d04
Fix Python3 Errors in Azure Cloud Module
...
When using Python3, the exec_module function errors out with a
unsupported operand type(s) for +: 'dict_keys' and 'list'
error when adding the .keys() to a static list. Use the explicit
list function to make a list of keys and then add to the ['tags'] list.
2017-06-29 08:30:26 -07:00
Abhijeet Kasurde
5b03e55440
Misc typos in azure_rm_deployment ( #25372 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-07 07:57:24 +02:00
Abhijeet Kasurde
5cf66ceda0
Misc typo in azure_rm_virtualmachine ( #25376 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-07 07:56:28 +02:00
Abhijeet Kasurde
07be5f2b67
spelling fixes (non-trivial, changing messages) ( #25094 )
...
Multiple spell fixes in single commit.
Taking over existing PR as per comment -
https://github.com/ansible/ansible/pull/23645#issuecomment-304312275
Original Author: klemens <ka7@github.com>
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-06-01 10:45:19 +01:00
Dylan Silva
bba4549b43
Downgraded more modules from Curated to Community ( #24751 )
2017-05-18 08:28:41 -07:00
Andrea Tartaglia
1d0a629dcc
Fixed docs for cloud modules ( #23745 )
...
* Fixed docs for cloud modules
* removed blank line in ec2_snapshot_facts
2017-04-27 12:01:11 +01:00
Patrick Marques
731fc288fa
fixes #4441 passing subnet_name parameter ( #18920 )
2017-04-12 10:58:56 -07:00
Matt Clay
48eeab8a53
Fix errors reported by pylint. ( #23282 )
...
* Fix pylint misplaced-bare-raise errors.
* Fix pylint return-in-init error.
* Fix pylint bad-format-character error.
* Fix pylint too-many-format-args errors.
* Fix pylint too-few-format-args errors.
* Fix pylint truncated-format-string error.
2017-04-06 16:58:16 -07:00
Matt Martz
3164e8b561
E501 fixes ( #22879 )
2017-03-22 20:50:28 -05:00
Matt Martz
02f66b9369
E1 legacy pep8 fixes ( #21933 )
...
* E1 pep8 fixes
* e111 fix for rds.py
2017-03-21 21:19:40 -05:00
John R Barker
9857ce8ddb
Fix render issue ( #22650 )
2017-03-15 16:31:37 +00:00
Toshio Kuratomi
eb1214baad
New metadata 1.0 ( #22587 )
...
Changes to the metadata format were approved here:
https://github.com/ansible/proposals/issues/54
* Update documentation to the new metadata format
* Changes to metadata-tool to account for new metadata
* Add GPL license header
* Add upgrade subcommand to upgrade metadata version
* Change default metadata to the new format
* Fix exclusion of non-modules from the metadata report
* Fix ansible-doc for new module metadata
* Exclude metadata version from ansible-doc output
* Fix website docs generation for the new metadata
* Update metadata schema in valiate-modules test
* Update the metadata in all modules to the new version
2017-03-14 09:07:22 -07:00
John R Barker
d21c16d455
Remove invalid `type:` ( #22548 )
2017-03-12 19:58:20 +00:00
John R Barker
e5b990a55a
Fix invalid fields in module DOCUMENATION ( #22297 )
...
* fix module doc fields
* More module docs corrections
* More module docs corrections
* More module docs corrections
* More module docs corrections
* correct aliases
* Review comments
* Must quote ':'
* More authors
* Use suboptions:
* restore type: bool
* type should be in the same place
* More tidyups
* authors
* Use suboptions
* revert
* remove duplicate author
* More issues post rebase
2017-03-09 16:20:25 +00:00
Matt Martz
7c00346714
Validate EXAMPLES as YAML
2017-02-15 13:01:43 -08:00
Brian Coca
74e8aa22af
no log passwords ( #21229 )
...
* no log passwords
* removed unneeded no_log
2017-02-10 15:13:59 -05:00
Matt Clay
cb76200c7d
PEP 8 E111 & E114 cleanup. ( #20838 )
2017-01-30 15:01:47 -08:00
Matt Clay
d0d1158c5e
PEP 8 cleanup. ( #20789 )
...
* PEP 8 E703 cleanup.
* PEP 8 E701 cleanup.
* PEP 8 E711 cleanup.
* PEP 8 W191 and E101 cleanup.
2017-01-28 00:12:11 -08:00
Matt Clay
d913f69ba1
PEP 8 W291 whitespace cleanup.
2017-01-27 17:08:02 -08:00
Matt Clay
95789f3949
PEP 8 whitespace cleanup. ( #20783 )
...
* PEP 8 E271 whitespace cleanup.
* PEP 8 W293 whitespace cleanup.
* Fix whitespace issue from recent PR.
2017-01-27 15:45:23 -08:00
Fabio Alessandro Locati
474c0dc87c
Remove quotes - Cloud/azure/azure.py ( #19206 )
...
* Remove unused quotes
* Explicit is better than inplicit
2017-01-08 15:28:48 +00:00
Carlos E. Garcia
0b8011436d
minor spelling changes
2016-12-13 13:51:13 -05:00
Matt Clay
2cb6a10a0e
Fix module names in module docs.
2016-12-09 18:13:57 -07:00
James Cammarata
011ea55a8f
Relocating extras into lib/ansible/modules/ after merge
2016-12-08 11:35:18 -05:00
James Cammarata
8afa090417
Resolving differences in core modules post-merge
2016-12-08 11:25:36 -05:00
Toshio Kuratomi
7319104552
Refreshed metadata for core modules
2016-12-08 11:25:35 -05:00
jctanner
06e1141106
replace type() with isinstance() ( #5541 )
...
Replace all use of type() with isintance()
Addresses https://github.com/ansible/ansible/issues/18310
2016-12-08 11:25:27 -05:00
Michael Scherer
8b7898e4ab
Do not leak the password in log ( #5203 )
2016-12-08 11:25:20 -05:00
John R Barker
25b6492d37
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
2016-12-08 11:25:20 -05:00
John Barker
bca8bbe7c2
Correct functional typos
2016-12-08 11:25:19 -05:00
Patrick Marques
697a328124
ssh_public_keys on Azure virtual machine is a list ( #4350 )
...
The ssh_public_keys must be a list otherwise will give the error:
"argument ssh_public_keys is of type <type 'dict'> and we were unable to convert to list"
2016-12-08 11:24:53 -05:00
Ryan
8b582cceaa
fix typo in azure_rm_storageaccount ( #4236 )
2016-12-08 11:24:45 -05:00
h-hirokawa
57921c0b4d
Fix azure_rm_virtualmachine ( #4174 ).
2016-12-08 11:24:43 -05:00
Chris Houseknecht
a8059c68d0
Remove object name validation.
2016-12-08 11:24:41 -05:00
chouseknecht
9c6da9194a
Update and pin to azure-2.0.0rc5
2016-12-08 11:24:40 -05:00
chouseknecht
950931144f
Fix 3857 name regex
2016-12-08 11:24:34 -05:00
chouseknecht
abbddbde49
Fix missing ansible_facts.
2016-12-08 11:24:33 -05:00
chouseknecht
0c5eac4243
Fix missing key error when updating existing virtual network.
2016-12-08 11:24:31 -05:00
Matt Martz
a2d94c85e9
2 Module fixes ( #3611 )
...
* Fix syntax error in azure_rm_virtualmachine.py
* Allow rhn_register to fail gracefully when rhn-client-tools is not installed
2016-12-08 11:24:30 -05:00
Toshio Kuratomi
7d9fb08e1a
Py3 exclude list ( #3698 )
...
* Fix a few modules to pass syntax checks under python3
* Move from a whitelist of modules to check for python3 compat to a blacklist
2016-12-08 11:24:29 -05:00
Brian Coca
985abd2020
switched to return facts
2016-12-08 11:24:26 -05:00
John R Barker
d13046a905
ansible-validate-modules part 4: Enable check on ansible-modules-core ( #3526 )
...
* Call ansible-validate-modules
* Correct quotes + add newline
2016-12-08 11:24:26 -05:00
Chris Houseknecht
a09569c150
Adding new module azure_rm_networkinterace_facts ( #3460 )
...
* Adding new Azure module.
* Updating based on PR comments
2016-12-08 11:24:25 -05:00
Chris Houseknecht
9406855d6b
Adding new module azure_rm_publicipaddress_facts ( #3463 )
...
* Adding new Azure module.
* Updating based on PR comments
2016-12-08 11:24:25 -05:00
Chris Houseknecht
9db01b03fd
Adding module azure_rm_virtualnetwork_facts ( #3479 )
2016-12-08 11:24:25 -05:00
Chris Houseknecht
8a3539e69e
Adding module azure_rm_storageaccount_facts ( #3483 )
2016-12-08 11:24:25 -05:00
Chris Houseknecht
08c89626bc
Adding module azure_rm_securitygroup_facts ( #3485 )
2016-12-08 11:24:25 -05:00
Chris Houseknecht
306cbd833d
Adding new module azure_rm_resourcegroup_facts ( #3487 )
2016-12-08 11:24:25 -05:00
Chris Houseknecht
4807aa9c0e
Adding module azure_rm_virtualmachineimage_facts ( #3489 )
2016-12-08 11:24:25 -05:00
Brian Coca
8397c8169c
fixed intersection
2016-12-08 11:24:24 -05:00
Brian Coca
0ae72e2712
rearranged options to be more declarative
2016-12-08 11:24:24 -05:00
Brian Coca
3ebfe3f00a
fixed missign main
2016-12-08 11:24:24 -05:00
Brian Coca
cf1b391201
several fixes:
...
- removed actions feature as this should be global and not per module
- removed default fields from return docs
- moved tags docs to shared fragments
- removed unused imports
2016-12-08 11:24:24 -05:00
chouseknecht
f09b7b02d6
Remove differences from output. Make options declarative.
2016-12-08 11:24:24 -05:00
chouseknecht
ae30540ca2
Reduced states to present and absent. Power states are now bool options.
2016-12-08 11:24:24 -05:00
chouseknecht
720e7daa3a
Fix poller error handling
2016-12-08 11:24:23 -05:00
chouseknecht
4f35cb0b2e
Adding module azure_rm_virtualmachine
2016-12-08 11:24:23 -05:00
Brian Coca
0ba37906df
minor doc fixes
2016-12-08 11:24:23 -05:00
Chris Houseknecht
e85368cb3e
Adding new module azure_rm_resourcegroup ( #3490 )
...
* Adding new module azure_rm_resourcegroup
* Fix poller error handling
2016-12-08 11:24:23 -05:00
Chris Houseknecht
6d4a5e5f0e
Adding module azure_rm_storageaccount.py ( #3484 )
...
* Adding module azure_rm_storageaccount.py
* Fix poller error handling
2016-12-08 11:24:23 -05:00
Chris Houseknecht
fedf06c449
Adding module azure_rm_securitygroup ( #3486 )
...
* Adding module azure_rm_securitygroup
* Fix poller error handling
2016-12-08 11:24:23 -05:00
Chris Houseknecht
8ba16e9866
Adding new module azure_rm_storageblob ( #3482 )
2016-12-08 11:24:23 -05:00
Chris Houseknecht
0d285ec18b
Adding module azure_rm_subnet ( #3481 )
...
* Adding module azure_rm_subnet
* Fix poller error handling
2016-12-08 11:24:22 -05:00
Chris Houseknecht
d80e4f53ec
Adding module azure_rm_virtualnetwork ( #3480 )
...
* Adding module azure_rm_virtualnetwork
* Fix poller error handling
2016-12-08 11:24:22 -05:00
Chris Houseknecht
4a99a6ee8f
Adding new module azure_rm_networkinterface ( #3461 )
...
* Adding new Azure module.
* Updating based on PR comments
* Fix poller error handling
2016-12-08 11:24:22 -05:00
chouseknecht
198bb7c644
Updating based on PR comments
2016-12-08 11:24:22 -05:00
chouseknecht
36de316c1b
Adding new azure module.
2016-12-08 11:24:21 -05:00
Kanwei Li
a2a3d2fc06
Add new Dv2 Azure instances
2016-12-08 11:24:09 -05:00
tksarah
7ad225eedd
Edit azure.py
2016-12-08 11:23:55 -05:00
Matias De Carli
f2bc0a6d85
keep backwards compatibility
2016-12-08 11:23:39 -05:00
Matias De Carli
d32809cadb
updated dependencies to work with azure.py 1.0.1
2016-12-08 11:23:37 -05:00
Chris Meyers
0dbf41e740
ensure password or ssh cert specified
2016-12-08 11:23:20 -05:00
Michal Smereczynski
9d4b252f56
Added new Premium Storage instance sizes and case-related documentation clarification.
2016-12-08 11:23:11 -05:00
Benno Joy
17c185c8d1
enable azure to provision windows instances
2016-12-08 11:23:09 -05:00
Benno Joy
2314670952
enable the module to provision windows instances
2016-12-08 11:23:09 -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
Chris Meyers
cec3c8c209
better timeout logic when deleting vm disks. Python 2.4 safe excepts
2016-12-08 11:22:57 -05:00
Chris Meyers
cdcaa2d6a0
correctly delete disks associated with vms
2016-12-08 11:22:57 -05:00
Richard Lander
2091278ff0
azure check for hosted service and vm before creating
2016-12-08 11:22:52 -05:00
Richard Lander
a0dad8e683
password required
2016-12-08 11:22:43 -05:00
Richard Lander
f5532b7904
set network_config.public_ips attribute
2016-12-08 11:22:43 -05:00
moussa taifi
742c10a1a0
Adds the currently available instance types for azure to the available dict(choices.....
2016-12-08 11:22:41 -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