Tom Melendez
a4077537e0
Added libcloud guard for Managed Instance Groups. ( #4911 )
2016-12-08 11:25:20 -05:00
Tom Melendez
72635db94d
GCE module examples update. Correct syntax, demonstrate other options and creation of multiple instances. ( #5192 )
2016-12-08 11:25:20 -05:00
Tom Melendez
ea76dedadf
Support for GCE Managed Instance Groups. ( #4541 )
...
Create, Delete, Resize and Recreate (of instances) supported. Autoscalers are also supported.
2016-12-08 11:25:09 -05:00
Tom Melendez
35acdec063
Document ability to disable external IP with 'none' setting. Closes #2562 . ( #4878 )
2016-12-08 11:25:06 -05:00
John Baublitz
fe09641476
Doc update
2016-12-08 11:24:45 -05:00
John Baublitz
c8dc0bf5c9
Fix exception handling to be compatible with Python 3
2016-12-08 11:24:45 -05:00
John Baublitz
4b11312737
Additional error handling for corner cases like deleting networks with active subnetworks
2016-12-08 11:24:45 -05:00
John Baublitz
e4697c3780
Documentation
2016-12-08 11:24:45 -05:00
John Baublitz
96599a5963
Logic to allow subnet creation
2016-12-08 11:24:45 -05:00
John Baublitz
5591e6bb0b
Add error handling for specifying 'mode' with insufficiently recent libcloud
2016-12-08 11:24:45 -05:00
John Baublitz
9c9b22dc8f
Changes to allow 'auto' mode which does not allow IP address specification
2016-12-08 11:24:45 -05:00
John Baublitz
839871d87b
Support for newer networking modes in GCE
2016-12-08 11:24:45 -05:00
John Baublitz
906b457bf1
Collapse boilerplate code into change_instance_state function
2016-12-08 11:24:45 -05:00
John Baublitz
eb97165acc
Add states for stopping and starting machines
2016-12-08 11:24:44 -05:00
Tom Melendez
067bb6ec01
Added helper function and logic to sort attributes before comparing.
2016-12-08 11:24:44 -05:00
Tom Melendez
8becd9a14d
Allow GCE firewall rules to be updated when attributes changes. Fixes #2111 .
...
Previously, when the attributes of a GCE firewall change, they were ignored. This PR changes that behavior and now updates them.
Note that the "update" also removes attributes that are not specified.
An overview of the firewall rule behavior is as follows:
1. firewall name in GCP, state=absent in PLAYBOOK: Delete from GCP
2. firewall name in PLAYBOOK, not in GCP: Add to GCP.
3. firewall name in GCP, name not in PLAYBOOK: No change.
4. firewall names exist in both GCP and PLAYBOOK, attributes differ: Update GCP to match attributes from PLAYBOOK.
2016-12-08 11:24:44 -05:00
nitzmahone
570defc6d8
correct gs_storage docs to match reality
2016-12-08 11:24:35 -05:00
Gilles Gagniard
bbfea348df
better error message if libcloud is not recent enough to use gce subnetworks
2016-12-08 11:24:34 -05:00
Gilles Gagniard
152a713fd3
fix documentation to reflect subnetwork option is new in ansible 2.2
2016-12-08 11:24:34 -05:00
Gilles Gagniard
3404c0891b
Initial support for specifying in which subnetwork a gce instance should be created. This is required for non-legacy networks.
2016-12-08 11:24:34 -05:00
@
13bebda244
Fixing gce compile time errors irt exception handling for Python 3 ( #3845 )
2016-12-08 11:24:34 -05:00
Anton Simernia
1aa1b617f5
Update gc_storage.py ( #3802 )
2016-12-08 11:24:33 -05:00
Toshio Kuratomi
291e00d43a
Docs fixes
2016-12-08 11:24:28 -05:00
curious-eyes
5b88ad45ef
Add preemptible option on gce.py
2016-12-08 11:24:14 -05:00
curious-eyes
e16367739e
Fix #2761 : gce.py - UnboundLocalError: local variable 'md'
2016-12-08 11:24:10 -05:00
Tim Alkemade
be19982313
GCE module does not fetch disk images if not necessary
2016-12-08 11:24:09 -05:00
daniel-sc
f654bd45f8
Allowing specifying ip by address
2016-12-08 11:23:59 -05:00
daniel-sc
40565b7293
Allowing to specify specific external ip for gce instances
2016-12-08 11:23:59 -05:00
Marios Andreopoulos
1ae765d61f
fix: do not set scopes account to service account used for instance creation
2016-12-08 11:23:58 -05:00
Vic Iglesias
353db36515
Update GCE PEM deprecation text and examples
2016-12-08 11:23:56 -05:00
Vic Iglesias
612d9c3e92
Use credentials_file for GCE module auth config
2016-12-08 11:23:55 -05:00
Toshio Kuratomi
7a492764d0
Fix up documentation
2016-12-08 11:23:54 -05:00
Pedro Romano
bcae9a2b5e
GCE libcloud 0.15 support and code cleanup * Code formatting (indentation and white space) fixes for improved PEP8 conformity. * Remove redundant backslashes inside parentheses. * Test for object identity should be 'is not None'. * Test for membership should be 'not in'. * Fit docstring to the PEP8 79 character limit. * Use forward compatible Python 2.6+ 'except .. as' syntax for exception handling. * Support libcloud > 0.15 'metadata' argument format.
2016-12-08 11:23:53 -05:00
Jumpei Ogawa
ebb0d6301d
Add explanation in case that ipv4_range is required
2016-12-08 11:23:51 -05:00
Jumpei Ogawa
256c840942
Add better error message when specified network doesn't exist and ipv4_range is not specified
2016-12-08 11:23:51 -05:00
Till Backhaus
e005ef0c36
Delete dead and broken code
2016-12-08 11:23:33 -05:00
khassen
8b60dd349d
Use the common/shared MD5 function.
2016-12-08 11:23:25 -05:00
Alan Scherger
861d260b6c
fix docs; only delete network if fwname is not provided
2016-12-08 11:23:23 -05:00
HelenaTian
1b614172f5
Update gce.py to correctly handle propagated metadata type from a mother template
...
My project is using Ansible to automate cloud build process. Ansible has a core module gce.py for managing GCE instances.
We've come across a use case that's not yet supported - when executing ansible-playbook, if a child template is included, then metadata which is defined in and propagated from the mother template is treated as string type and not parsed correctly(which instead is dictionary type), and triggers release flow failure.
We currently put some fix by explicitly casting metadata to string type in our own branch, but would like to contribute the fix to Ansible so that everyone onboarding GCE and using Ansible for release management could benefit from it, or hear owner's opinion on fixing the issue if there's a better fix in owner's mind:)
2016-12-08 11:23:23 -05:00
James Cammarata
5cd3c6ebe6
Update choices and version_added for new gce.py param service_account_permissions
2016-12-08 11:23:11 -05:00
Vasyl Kaigorodov
758688a667
GCE module: added Service Account permissions sanity checks
2016-12-08 11:23:10 -05:00
Vasyl Kaigorodov
4400c5e163
GCE module: document Service Account permissions parameter usage
2016-12-08 11:23:10 -05:00
Vasyl Kaigorodov
97e880a27f
GCE module: add posibility to specify Service Account permissions during instance creation
2016-12-08 11:23:10 -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
Matt Martz
0b4fec0a06
Don't use a dict comprehension, be more verbose
2016-12-08 11:22:53 -05:00
Richard Tier
0a48d54c1c
added version to docstring
2016-12-08 11:22:53 -05:00
Richard Tier
0c1624f9b7
allow setting header
2016-12-08 11:22:52 -05:00
Robert Marsa
b7649cc5ca
Added multiple allowed ranges.
2016-12-08 11:22:49 -05:00
Lev Popov
5f31654704
Allow to keep instance boot disk after instance deletion in google cloud module
2016-12-08 11:22:46 -05:00