From 23cd1dce787ba9d7b1e327298ba7392ff15622d0 Mon Sep 17 00:00:00 2001 From: Chenzi Cao Date: Fri, 20 Dec 2024 12:00:07 +0100 Subject: [PATCH] Add profile for unattended installation with lvm Add profile for unattended installation with lvm. --- data/yam/agama/auto/lvm_sle.jsonnet | 36 +++++++++++++++++++++++++++++ schedule/yam/agama_auto_lvm.yaml | 14 +++++++++++ 2 files changed, 50 insertions(+) create mode 100644 data/yam/agama/auto/lvm_sle.jsonnet create mode 100644 schedule/yam/agama_auto_lvm.yaml diff --git a/data/yam/agama/auto/lvm_sle.jsonnet b/data/yam/agama/auto/lvm_sle.jsonnet new file mode 100644 index 000000000000..7eb959149851 --- /dev/null +++ b/data/yam/agama/auto/lvm_sle.jsonnet @@ -0,0 +1,36 @@ +{ + "product": { + "id": "SLES_16.0" + }, + "user": { + "fullName": "Bernhard M. Wiedemann", + "password": "$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/", + "hashedPassword": true, + "userName": "bernhard" + }, + "root": { + "password": "$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/", + "hashedPassword": true + }, + "storage": { + "guided": { + "target": { + "newLvmVg": [ + "/dev/vda" + ] + } + } + }, + "scripts": { + "post": [ + { + "name": "enable root login", + "chroot": true, + "body": ||| + #!/usr/bin/env bash + zypper rm openssh-server-config-rootlogin + ||| + } + ] + } +} diff --git a/schedule/yam/agama_auto_lvm.yaml b/schedule/yam/agama_auto_lvm.yaml new file mode 100644 index 000000000000..533e0dcb711e --- /dev/null +++ b/schedule/yam/agama_auto_lvm.yaml @@ -0,0 +1,14 @@ +--- +name: agama unattended lvm +description: > + Perform agama auto installation with LVM. +schedule: + - yam/agama/boot_agama + - yam/agama/agama_auto + - installation/grub_test + - installation/first_boot + - console/validate_lvm +test_data: + crypttab: + num_devices_encrypted: 2 + <<: !include test_data/yast/encryption/default_enc_luks2.yaml