11package inventory
22
3- import "app/base/types"
3+ import (
4+ "app/base/types"
5+ )
46
57type SystemProfile struct {
68 Arch * string `json:"arch,omitempty"`
@@ -14,6 +16,7 @@ type SystemProfile struct {
1416 SatelliteManaged bool `json:"satellite_managed,omitempty"`
1517 BootcStatus Bootc `json:"bootc_status,omitempty"`
1618 ConsumerID string `json:"owner_id,omitempty"`
19+ Workloads Workloads `json:"workloads,omitempty"`
1720}
1821
1922func (t * SystemProfile ) GetInstalledPackages () []string {
@@ -38,8 +41,8 @@ func (t *SystemProfile) GetYumRepos() []YumRepo {
3841}
3942
4043type OperatingSystem struct {
41- Major int `json:"major,omitempty"`
42- Minor int `json:"minor,omitempty"`
44+ Major int16 `json:"major,omitempty"`
45+ Minor int16 `json:"minor,omitempty"`
4346 Name string `json:"name,omitempty"`
4447}
4548
@@ -72,3 +75,27 @@ type BootcBooted struct {
7275type ReporterStaleness struct {
7376 LastCheckIn types.Rfc3339TimestampWithZ `json:"last_check_in"`
7477}
78+
79+ type Group struct {
80+ ID string `json:"id"`
81+ Name string `json:"name"`
82+ }
83+
84+ type Workloads struct {
85+ Sap SapWorkload `json:"sap,omitempty"`
86+ Ansible AnsibleWorkload `json:"ansible,omitempty"`
87+ Mssql MssqlWorkload `json:"mssql,omitempty"`
88+ }
89+
90+ type SapWorkload struct {
91+ SapSystem bool `json:"sap_system,omitempty"`
92+ Sids []string `json:"sids,omitempty"`
93+ }
94+
95+ type AnsibleWorkload struct {
96+ ControllerVersion string `json:"controller_version,omitempty"`
97+ }
98+
99+ type MssqlWorkload struct {
100+ Version string `json:"version,omitempty"`
101+ }
0 commit comments