Commit graph

462 commits

Author SHA1 Message Date
Alex Stephen
563fb4cf96 ansible node group
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-10-02 19:43:24 +00:00
Alex Stephen
86cba60a8d
release pipeline fix (#16)
release pipeline fix
2019-10-02 10:30:05 -07:00
Alex Stephen
63156d9daf release pipeline fix
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-10-01 22:21:19 +00:00
Alex Stephen
fc7352c4f9
Adding namespace on integration tests + examples (#10)
Adding namespace on integration tests + examples
2019-09-30 18:25:38 -04:00
Alex Stephen
516fada880 Adding namespace on integration tests + examples
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-30 22:08:25 +00:00
Riley Karson
6c7c5f4977
Add omitted to to Backend Bucket docs (#14)
Add omitted to to Backend Bucket docs
2019-09-27 10:00:22 -07:00
Riley Karson
b3fbdec48c Add omitted to to Backend Bucket docs
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-27 16:46:02 +00:00
Riley Karson
d28884ddfc
add storage bucket access control (#13)
add storage bucket access control
2019-09-25 12:18:31 -07:00
megan07
97282ebb39 add storage bucket access control
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-25 16:29:31 +00:00
Alex Stephen
458e9312b3
Merge pull request #4 from modular-magician/codegen-pr-2310
use module utils from collection, not core
2019-09-20 11:00:58 -07:00
Alex Stephen
9f450df983 use module utils from collection, not core
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-20 17:43:32 +00:00
Alex Stephen
329ebf389f
Node Template resource (#9)
[Ansible] Node Template resource
2019-09-20 10:25:50 -07:00
The Magician
42a88d6006 Add metadataFilters to GlobalForwardingRule (#8)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-19 15:53:56 -07:00
Alex Stephen
afcb3f0c46 [Ansible] Node Template resource
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-19 22:18:05 +00:00
Ty Larrabee
0e847d9fa8
Merge pull request #6 from modular-magician/codegen-pr-2288
Add beta fields to BackendService to support traffic director
2019-09-19 15:07:19 -07:00
Ty Larrabee
91c805a865 Add beta fields to BackendService to support traffic director
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-18 23:17:52 +00:00
Alex Stephen
4e0e732dcb
add guest os features to compute image (#7)
add guest os features to compute image
2019-09-18 12:33:47 -07:00
megan07
75ebbfc88f add guest os features to compute image
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-18 15:36:04 +00:00
Ty Larrabee
3995757a08
Merge pull request #5 from modular-magician/codegen-pr-2195
Add RegionHealthCheck to compute
2019-09-17 10:12:32 -07:00
Ty Larrabee
895932a90f Add RegionHealthCheck to compute
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-16 22:18:34 +00:00
Alex Stephen
66cb57dfc6 gcp_compute refactor (#61249)
* wip

* it works!

* cache should work

* ran black on code

* wip

* now it works

* black
2019-09-12 11:02:34 -07:00
Alex Stephen
64e9973ae8 nonetype error (#60603) 2019-09-12 11:02:34 -07:00
Elijah DeLee
09479a9fa0 Remove extra print statement (#59104)
Let ansible-inventory handle all output
Fixes #59101
2019-09-12 11:02:34 -07:00
Strahinja Kustudic
d0ae3b5d1e Fix version_added for gcp_compute 2019-09-12 11:02:34 -07:00
Strahinja Kustudic
85cdf91048 Add service_account_contents parameter to allign with the modules (#57848) 2019-09-12 11:02:34 -07:00
Alex Stephen
80503bb976 better metadata formatting on gcp_compute (#57778) 2019-09-12 11:02:34 -07:00
Strahinja Kustudic
64fb6d5ce0 Added environment variables to gcp_compute to align with gcp_* modules (#57776)
Added all variables that are also used by the gcp_* modules as described
in the docs
https://docs.ansible.com/ansible/latest/scenario_guides/guide_gce.html#providing-credentials-as-environment-variables
2019-09-12 11:02:34 -07:00
LucasBoisserie
ae9dd53c92 Remove required field on service_account_file in gcp_compute plugin inventory (#57345) 2019-09-12 11:02:34 -07:00
Strahinja Kustudic
23e26bf6cd Improve speed of the gpc_compute dynamic inventory (#57591)
To get all instances gcp_compute made a call to the Google API for each
zone separately. Because of this if all zones needed to be queried
fetching hosts lasted 30+ seconds. Now the module will use a single
query that will return all the instances, so the execution should last
just a few seconds.

This commit also suppresses a warning from the google-auth library about
using user credentials because if an Ansible user wants to use user
credentials, there is no need to warn him about it.
2019-09-12 11:02:34 -07:00
Brian Coca
0752ca5bed Not native, but text (#55676)
* use to_text instead of to_native
* cleaned up some imports and other pyflakisms
* fix missing lib messages
2019-09-12 11:02:34 -07:00
Alex Stephen
0d88614720 return actual error from module logic on gcp_compute (#55055)
* return actual error from module logic on gcp_compute

* changing how the error is presented

* sanity
2019-09-12 11:02:34 -07:00
Alan Rominger
26de6c9388 optionally get service account file path from env var (#54407) 2019-09-12 11:02:33 -07:00
Adam Miller
95da5c9c69 Bugfix/52688 gcp compute missing image (#54468)
* adding (optionally) image information to inventory var
* add boot image mapping to gcp_compute instance data for all disk
image data in the configured zones

Signed-off-by: Adam Miller <admiller@redhat.com>
2019-09-12 11:02:33 -07:00
Brian Coca
b077e3233b restored configurabilty of scopes (#54485) 2019-09-12 11:02:33 -07:00
Brian Coca
862bb52222 fixing gcp inv plugin (#54426)
* start fixing gcp inv plugin

* minor fixes

* added clog

* ajust comments

* link indv zone/project

* separate specific zone/project from other params

* restoring zones query per project

* also work when zones given

* fixed scopes, removed incorrect docs as not option
2019-09-12 11:02:33 -07:00
Sloane Hertel
9929887c70 Update inventory caching to remove deprecation warnings (#53976) 2019-09-12 11:02:33 -07:00
Brian Coca
fe65ed63ed Overridable safety (#53458)
* create overridable sanitation function
* now used in aws, gce and azure plugins
* added new option to these plugins to work in conjunction with general toggle to make it easier
  to emulate inventory script behavior.
2019-09-12 11:02:33 -07:00
Alan Rominger
72ab605225 Put in documented default for gcp_compute filters (#50025) 2019-09-12 11:02:33 -07:00
Ids van der Molen
1e25d0e889 gcp_compute: Add vars_prefix to prefix host_vars (#49601)
* Add vars_prefix to prefix host_vars

* Set vars_prefix default to empty string
2019-09-12 11:02:33 -07:00
Sloane Hertel
673c7cd803 add more consistent extension matching for inventory plugins (#46786)
* Add consistent extension matching for inventory plugins that support YAML configuration files

* Document extension matching expectations
2019-09-12 11:02:33 -07:00
Bob Lee
88743d11ae Update documentation for gcp_compute (#43791)
Added examples on how to use "keyed_groups", "hostnames", and "compose"

The compose example shows how to set the ansible_host var for a host to either the public or private ip. This is necessary when you set your hostname by name instead of ip
2019-09-12 11:02:33 -07:00
Brian Coca
e6c4e94687 added required missing field for common yaml fmt 2019-09-12 11:02:33 -07:00
Alex Stephen
03cdff340d GCP Inventory Plugin scopes fix 2019-09-12 11:02:33 -07:00
Alex Stephen
1519f8c652 GCP Inventory Plugin (#36884)
* Inventory

* Adding multi project support

* Adding multi project support

* Fixing PR comments and cleaning code

* Adding cache support
* Changed filter notation

* Inventory changes

* Better readability for zones, networks, subnetworks
* Added project to inventory output
* Using IP instead of hostname
* Keyed_groups support
* Use all zones when none provided.

* PR changes

* Doc changes
* Accepts *gcp_compute.yaml file names
* Added support for changing host naming precedent

* PR changes round 2

* Cache changes
* Changed verify_file function
* Misc style changes

* Cache fixes

* Fix docs for `hostnames` option.
2019-09-12 11:02:33 -07:00
Alex Stephen
6d6a995be4
Merge pull request #3 from modular-magician/codegen-pr-2274
Ansible test refactor (preparing for custom tests)
2019-09-10 15:35:53 -07:00
Alex Stephen
6e397c7e4c Ansible test refactor (preparing for custom tests)
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-10 21:45:03 +00:00
Alex Stephen
11fb11c061
Merge pull request #2 from modular-magician/codegen-pr-2298
Better README on Ansible Collection
2019-09-10 11:13:05 -07:00
Alex Stephen
6aa0562c0c Better README on Ansible Collection
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-10 18:04:37 +00:00
Alex Stephen
1fe073a2c8
removing documentation fragment (#1)
removing documentation fragment
2019-09-06 13:37:04 -07:00
Alex Stephen
84e760b022 removing documentation fragment
Signed-off-by: Modular Magician <magic-modules@google.com>
2019-09-06 20:12:02 +00:00