OpenSearch/plugins
David Pilato 289cd5dcf4 [discovery-gce] add _gce_ network host setting
When running in GCE platform, an instance has access to:

http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip

Which gives back the private IP address, for example `10.240.0.2`.

http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/externalIp

Gives back the public Ip address, for example `130.211.108.21`.

As we have for `ec2`, we can support new network host settings:

* `_gce:privateIp:X_`: The private IP address of the machine for a given network interface.
* `_gce:hostname_`: The hostname of the machine.
* `_gce_`: Same as `_gce:privateIp:0_` (recommended).

Closes #13605.
Closes #13590.

BTW resolveIfPossible now throws IOException so code is also updated for ec2 discovery and
some basic tests have been added.
2015-10-07 22:04:34 +02:00
..
analysis-icu Merge pull request #13702 from rmuir/broke_javadocs 2015-09-22 00:46:31 -04:00
analysis-kuromoji Remove unnecessary copies of license and notice files 2015-09-18 17:48:30 -07:00
analysis-phonetic Merge pull request #13702 from rmuir/broke_javadocs 2015-09-22 00:46:31 -04:00
analysis-smartcn Remove unnecessary copies of license and notice files 2015-09-18 17:48:30 -07:00
analysis-stempel Remove unnecessary copies of license and notice files 2015-09-18 17:48:30 -07:00
cloud-gce [discovery-gce] add _gce_ network host setting 2015-10-07 22:04:34 +02:00
delete-by-query Merge branch 'master' into feature/query-refactoring 2015-09-22 12:43:55 +02:00
discovery-azure Fix ping timeout settings inconsistencies 2015-09-23 12:58:23 -04:00
discovery-ec2 [discovery-gce] add _gce_ network host setting 2015-10-07 22:04:34 +02:00
discovery-multicast Merge pull request #13702 from rmuir/broke_javadocs 2015-09-22 00:46:31 -04:00
jvm-example more cleanups 2015-10-05 14:07:17 +02:00
lang-expression Remove ScriptEngineService.execute. 2015-10-06 13:27:27 +02:00
lang-groovy Merge pull request #13961 from brwe/function-score-unit-tests 2015-10-07 14:51:22 +02:00
lang-javascript Remove ScriptEngineService.execute. 2015-10-06 13:27:27 +02:00
lang-python prevent test failures from jython localization bugs. 2015-10-06 10:17:19 -04:00
mapper-murmur3 Test: Move rest-api-spec for plugins into test resources 2015-09-16 03:04:53 -07:00
mapper-size Test: Move rest-api-spec for plugins into test resources 2015-09-16 03:04:53 -07:00
repository-azure Fix all javadocs issues, re-enable compiler warnings (but disable on java9 where maven is broken) 2015-09-21 23:35:32 -04:00
repository-s3 Add SpecialPermission to guard exceptions to security policy. 2015-09-29 17:32:56 -04:00
site-example Test: Move rest-api-spec for plugins into test resources 2015-09-16 03:04:53 -07:00
store-smb more cleanups 2015-10-05 14:07:17 +02:00
pom.xml Factor groovy out of core into lang-groovy 2015-09-28 20:17:45 -04:00