Commit graph

13 commits

Author SHA1 Message Date
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