diff --git a/spec/hardware/tpm.fmf b/spec/hardware/tpm.fmf new file mode 100644 index 0000000000..29184088e3 --- /dev/null +++ b/spec/hardware/tpm.fmf @@ -0,0 +1,9 @@ +summary: + Require the `Trusted Platform Module` features +description: + Use the ``version`` key to select the desired ``tpm`` version, + its value must be a ``string``. +example: + - | + tpm: + version: "2.0" diff --git a/tmt/schemas/provision/hardware.yaml b/tmt/schemas/provision/hardware.yaml index 645698aba3..5c83042029 100644 --- a/tmt/schemas/provision/hardware.yaml +++ b/tmt/schemas/provision/hardware.yaml @@ -132,6 +132,17 @@ definitions: items: "$ref": "#/definitions/network" + # HW requirements: `tpm` block + tpm: + type: object + + properties: + version: + type: string + + additionalProperties: false + minProperties: 1 + # HW requirements: `virtualization` block virtualization: type: object @@ -179,6 +190,9 @@ definitions: network: "$ref": "#/definitions/networks" + tpm: + "$ref": "#/definitions/tpm" + virtualization: "$ref": "#/definitions/virtualization" @@ -200,6 +214,7 @@ definitions: - "$ref": "#/definitions/cpu" - "$ref": "#/definitions/disks" - "$ref": "#/definitions/networks" + - "$ref": "#/definitions/tpm" - "$ref": "#/definitions/virtualization" - "$ref": "#/definitions/block" - "$ref": "#/definitions/and" @@ -219,6 +234,7 @@ definitions: - "$ref": "#/definitions/cpu" - "$ref": "#/definitions/disks" - "$ref": "#/definitions/networks" + - "$ref": "#/definitions/tpm" - "$ref": "#/definitions/virtualization" - "$ref": "#/definitions/block" - "$ref": "#/definitions/and" @@ -233,6 +249,7 @@ definitions: - "$ref": "#/definitions/cpu" - "$ref": "#/definitions/disks" - "$ref": "#/definitions/networks" + - "$ref": "#/definitions/tpm" - "$ref": "#/definitions/virtualization" - "$ref": "#/definitions/block" - "$ref": "#/definitions/and"