salt.grains.metadata_gce

Grains from cloud metadata servers at 169.254.169.254 in google compute engine

New in version 3005.

depends:

requests

To enable these grains that pull from the http://169.254.169.254/computeMetadata/v1/ metadata server set metadata_server_grains: True in the minion config.

metadata_server_grains: True
salt.grains.metadata_gce.metadata()

Takes no arguments, returns a dictionary of metadata values from Google.