mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Add detail_update_time in createDevHosts (#315)
This commit is contained in:
parent
beda051de2
commit
4100eea2a8
1 changed files with 22 additions and 20 deletions
42
cli/serve.go
42
cli/serve.go
|
|
@ -212,28 +212,30 @@ func createDevUsers(ds kolide.Datastore, config config.KolideConfig) {
|
|||
func createDevHosts(ds kolide.Datastore, config config.KolideConfig) {
|
||||
hosts := []kolide.Host{
|
||||
{
|
||||
NodeKey: "totally-legit",
|
||||
HostName: "jmeller-mbp.local",
|
||||
UUID: "1234-5678-9101",
|
||||
Platform: "darwin",
|
||||
OsqueryVersion: "2.0.0",
|
||||
OSVersion: "Mac OS X 10.11.6",
|
||||
Uptime: 60 * time.Minute,
|
||||
PhysicalMemory: 4145483776,
|
||||
PrimaryMAC: "10:11:12:13:14:15",
|
||||
PrimaryIP: "192.168.1.10",
|
||||
NodeKey: "totally-legit",
|
||||
HostName: "jmeller-mbp.local",
|
||||
UUID: "1234-5678-9101",
|
||||
Platform: "darwin",
|
||||
OsqueryVersion: "2.0.0",
|
||||
OSVersion: "Mac OS X 10.11.6",
|
||||
Uptime: 60 * time.Minute,
|
||||
PhysicalMemory: 4145483776,
|
||||
PrimaryMAC: "10:11:12:13:14:15",
|
||||
PrimaryIP: "192.168.1.10",
|
||||
DetailUpdateTime: time.Now(),
|
||||
},
|
||||
{
|
||||
NodeKey: "definitely-legit",
|
||||
HostName: "marpaia.local",
|
||||
UUID: "1234-5678-9102",
|
||||
Platform: "windows",
|
||||
OsqueryVersion: "2.0.0",
|
||||
OSVersion: "Windows 10.0.0",
|
||||
Uptime: 60 * time.Minute,
|
||||
PhysicalMemory: 17179869184,
|
||||
PrimaryMAC: "10:11:12:13:14:16",
|
||||
PrimaryIP: "192.168.1.11",
|
||||
NodeKey: "definitely-legit",
|
||||
HostName: "marpaia.local",
|
||||
UUID: "1234-5678-9102",
|
||||
Platform: "windows",
|
||||
OsqueryVersion: "2.0.0",
|
||||
OSVersion: "Windows 10.0.0",
|
||||
Uptime: 60 * time.Minute,
|
||||
PhysicalMemory: 17179869184,
|
||||
PrimaryMAC: "10:11:12:13:14:16",
|
||||
PrimaryIP: "192.168.1.11",
|
||||
DetailUpdateTime: time.Now(),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue