Add public ip to hosts & derive geolocation when rendering host (#4652)

* geoip wip
* return nil if ip is empty string or if ParseIP returns nil
* add ui component to render geolocation if available, address PR feedback
* render public ip if available
* add changes file, document geoip in deployment guide
* update rest-api docs
This commit is contained in:
Benjamin Edwards
2022-03-21 12:29:52 -04:00
committed by GitHub
parent 1164330bd4
commit 74bb559645
28 changed files with 326 additions and 37 deletions
@@ -31,6 +31,7 @@
"hardware_version":"",
"hardware_serial":"",
"computer_name":"test_host",
"public_ip": "",
"primary_ip":"",
"primary_mac":"",
"distributed_interval":0,
@@ -63,6 +63,7 @@ spec:
created_at: "0001-01-01T00:00:00Z"
updated_at: "0001-01-01T00:00:00Z"
policy_updated_at: "0001-01-01T00:00:00Z"
public_ip: ""
primary_ip: ""
primary_mac: ""
refetch_requested: false
+2
View File
@@ -31,6 +31,7 @@
"hardware_version":"",
"hardware_serial":"",
"computer_name":"test_host",
"public_ip": "",
"primary_ip":"",
"primary_mac":"",
"distributed_interval":0,
@@ -90,6 +91,7 @@
"hardware_version":"",
"hardware_serial":"",
"computer_name":"test_host2",
"public_ip": "",
"primary_ip":"",
"primary_mac":"",
"distributed_interval":0,
+2
View File
@@ -40,6 +40,7 @@ spec:
platform: ""
platform_like: ""
policy_updated_at: "0001-01-01T00:00:00Z"
public_ip: ""
primary_ip: ""
primary_mac: ""
refetch_requested: false
@@ -88,6 +89,7 @@ spec:
platform: ""
platform_like: ""
policy_updated_at: "0001-01-01T00:00:00Z"
public_ip: ""
primary_ip: ""
primary_mac: ""
refetch_requested: false