|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing-with-agent/installing-with-agent-based-installer.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="installing-ocp-agent-encrypt_{context}"] |
| 7 | += Optional: Encrypting the disk |
| 8 | + |
| 9 | +Use this procedure to encrypt your disk or partition while installing {product-title} with the Agent-based Installer. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have created and configured the `install-config.yaml` and `agent-config.yaml` files, unless you are using ZTP manifests. |
| 14 | +
|
| 15 | +* You have placed the `openshift-install` binary in a directory that is on your `PATH`. |
| 16 | +
|
| 17 | +.Procedure |
| 18 | + |
| 19 | +. Use the following command to generate ZTP cluster manifests: |
| 20 | ++ |
| 21 | +[source,terminal] |
| 22 | +---- |
| 23 | +$ openshift-install agent create cluster-manifests --dir <installation_directory> |
| 24 | +---- |
| 25 | ++ |
| 26 | +[IMPORTANT] |
| 27 | +==== |
| 28 | +If you have created the `install-config.yaml` and `agent-config.yaml` files, those files are deleted and replaced by the cluster manifests generated through this command. |
| 29 | +
|
| 30 | +Any configurations made to the `install-config.yaml` and `agent-config.yaml` files are imported to the ZTP cluster manifests when you run the `openshift-install agent create cluster-manifests` command. |
| 31 | +==== |
| 32 | ++ |
| 33 | +[NOTE] |
| 34 | +==== |
| 35 | +If you have already generated ZTP manifests, skip this step. |
| 36 | +==== |
| 37 | + |
| 38 | +. Navigate to the `cluster-manifests` directory: |
| 39 | ++ |
| 40 | +[source,terminal] |
| 41 | +---- |
| 42 | +$ cd <installation_directory>/cluster-manifests |
| 43 | +---- |
| 44 | + |
| 45 | +. Add the following section to the `agent-cluster-install.yaml` file: |
| 46 | ++ |
| 47 | +[source,yaml] |
| 48 | +---- |
| 49 | +diskEncryption: |
| 50 | + enableOn: all <1> |
| 51 | + mode: tang <2> |
| 52 | + tangServers: "server1": "http://tang-server-1.example.com:7500" <3> |
| 53 | +---- |
| 54 | +<1> Specify which nodes to enable disk encryption on. Valid values are 'none', 'all', 'master', and 'worker'. |
| 55 | +<2> Specify which disk encryption mode to use. Valid values are 'tpmv2' and 'tang'. |
| 56 | +<3> Optional: If you are using Tang, specify the Tang servers. |
0 commit comments