Skip to content

Commit

Permalink
Fixed encryption definition
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Feb 3, 2025
1 parent a4d3c6f commit 5c9961b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions data/yam/agama/auto/lib/storage.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
{
name: 'system',
physicalVolumes: [
{ generate: ['pvs-disk'],
[if encryption == true then 'encryption']: { luks2: { password: "nots3cr3t" } }
{
[if encryption == true then 'generate']: {
targetDevices: ['pvs-disk'],
encryption: {
luks2: { password: "nots3cr3t" }
}
},
[if encryption == false then 'generate']: ['pvs-disk'],
},
],
logicalVolumes: [
Expand Down

0 comments on commit 5c9961b

Please sign in to comment.