Skip to content

Commit

Permalink
Renamed encrypted variable
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Feb 3, 2025
1 parent 0578b9c commit b014cdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions data/yam/agama/auto/lib/storage.libsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
lvm(encryption=false): {
lvm(encrypted=false): {
drives: [
{
alias: 'pvs-disk',
Expand All @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions data/yam/agama/auto/template.jsonnet
Original file line number Diff line number Diff line change
@@ -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'],
}

0 comments on commit b014cdb

Please sign in to comment.