Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tpm as a new hardware specification key #1644

Merged
merged 2 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions spec/hardware/tpm.fmf
Original file line number Diff line number Diff line change
@@ -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"
17 changes: 17 additions & 0 deletions tmt/schemas/provision/hardware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -179,6 +190,9 @@ definitions:
network:
"$ref": "#/definitions/networks"

tpm:
"$ref": "#/definitions/tpm"

virtualization:
"$ref": "#/definitions/virtualization"

Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down