mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
fingerprint kernel architecture name (#13182)
This commit is contained in:
3
.changelog/13182.txt
Normal file
3
.changelog/13182.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:improvement
|
||||
fingerprint: add support for detecting kernel architecture of clients. (attribute: `kernel.arch`)
|
||||
```
|
||||
@@ -30,6 +30,7 @@ func (f *HostFingerprint) Fingerprint(req *FingerprintRequest, resp *Fingerprint
|
||||
resp.AddAttribute("os.version", hostInfo.PlatformVersion)
|
||||
|
||||
resp.AddAttribute("kernel.name", runtime.GOOS)
|
||||
resp.AddAttribute("kernel.arch", hostInfo.KernelArch)
|
||||
resp.AddAttribute("kernel.version", hostInfo.KernelVersion)
|
||||
|
||||
resp.AddAttribute("unique.hostname", hostInfo.Hostname)
|
||||
|
||||
@@ -212,6 +212,14 @@ Below is a table documenting common node properties:
|
||||
allocated
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>{'${attr.kernel.arch}'}</code>
|
||||
</td>
|
||||
<td>
|
||||
Kernel architecture of the client (e.g. <code>x86_64</code>, <code>aarch64</code>)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>{'${attr.kernel.name}'}</code>
|
||||
|
||||
Reference in New Issue
Block a user