Skip to content

Commit 1f3e02c

Browse files
committed
OSDOCS-7292: Agent disk encryption
1 parent 7265a1b commit 1f3e02c

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

installing/installing_with_agent_based_installer/installing-with-agent-based-installer.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ include::modules/installing-ocp-agent-inputs.adoc[leveloffset=+2]
3131

3232
You can create additional manifests to further configure your cluster beyond the configurations available in the `install-config.yaml` and `agent-config.yaml` files.
3333

34-
If you do not want to make additional configurations, proceed to xref:../../installing/installing_with_agent_based_installer/installing-with-agent-based-installer.adoc#installing-ocp-agent-boot_installing-with-agent-based-installer[Creating and booting the agent image].
35-
3634
// Partitioning the disk
3735
include::modules/installation-user-infra-machines-advanced.adoc[leveloffset=+3]
3836

@@ -45,6 +43,14 @@ include::modules/installing-ocp-agent-ZTP.adoc[leveloffset=+2]
4543

4644
* See xref:../../scalability_and_performance/ztp_far_edge/ztp-deploying-far-edge-clusters-at-scale.adoc#ztp-deploying-far-edge-clusters-at-scale[Challenges of the network far edge] to learn more about {ztp-first}.
4745

46+
// Optional: Encrypting the disk
47+
include::modules/installing-ocp-agent-encrypt.adoc[leveloffset=+2]
48+
49+
[role="_additional-resources"]
50+
.Additional resources
51+
52+
* xref:../../installing/install_config/installing-customizing.adoc#installation-special-config-encrypt-disk_installing-customizing[About disk encryption]
53+
4854
// Creating and booting the agent image
4955
include::modules/installing-ocp-agent-boot.adoc[leveloffset=+2]
5056

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

Comments
 (0)