From b014cdb4f4d873658391e45eb0124d009e44dfc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Fern=C3=A1ndez=20Aguilera?= Date: Mon, 3 Feb 2025 12:26:27 +0100 Subject: [PATCH] Renamed encrypted variable --- data/yam/agama/auto/lib/storage.libsonnet | 6 +++--- data/yam/agama/auto/template.jsonnet | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/yam/agama/auto/lib/storage.libsonnet b/data/yam/agama/auto/lib/storage.libsonnet index df04e6236ec7..d619838c23cd 100644 --- a/data/yam/agama/auto/lib/storage.libsonnet +++ b/data/yam/agama/auto/lib/storage.libsonnet @@ -1,5 +1,5 @@ { - lvm(encryption=false): { + lvm(encrypted=false): { drives: [ { alias: 'pvs-disk', @@ -13,13 +13,13 @@ name: 'system', physicalVolumes: [ { - [if encryption == true then 'generate']: { + [if encrypted == true then 'generate']: { targetDevices: ['pvs-disk'], encryption: { luks2: { password: "nots3cr3t" } } }, - [if encryption == false then 'generate']: ['pvs-disk'], + [if encrypted == false then 'generate']: ['pvs-disk'], }, ], logicalVolumes: [ diff --git a/data/yam/agama/auto/template.jsonnet b/data/yam/agama/auto/template.jsonnet index 7f6cc6780ba4..5776a029ad5a 100644 --- a/data/yam/agama/auto/template.jsonnet +++ b/data/yam/agama/auto/template.jsonnet @@ -1,12 +1,12 @@ local lib = import 'lib/base.libsonnet'; -function(storage='default', product='SLES', scripts='default', encryption=false) { +function(storage='default', product='SLES', scripts='default', encrypted=false) { product: lib.getProduct(product), user: lib['user'], root: lib['root'], [if scripts != '' then 'scripts']: lib.scripts[scripts], - [if storage == 'lvm' then 'storage']: lib.storage.lvm(encryption), + [if storage == 'lvm' then 'storage']: lib.storage.lvm(encrypted), [if storage == 'root_filesystem_ext4' then 'storage']: lib.storage['root_filesystem_ext4'], [if storage == 'root_filesystem_xfs' then 'storage']: lib.storage['root_filesystem_xfs'], }