Skip to content

Commit 7a8dba4

Browse files
committed
Pass real ssh key
1 parent efaa49f commit 7a8dba4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

data/yam/agama/auto/lib/base.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
root(password):: {
2424
[if password then 'password']: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',
2525
[if password then 'hashedPassword']: true,
26-
sshPublicKey: 'fake public key to enable sshd and open firewall',
26+
[if ssh_pub_key then 'sshPublicKey']: ssh_pub_key,
2727
},
2828
}

data/yam/agama/auto/template.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function(bootloader=true,
3434
scripts_post_partitioning='',
3535
scripts_post='',
3636
software_only_required=false,
37+
ssh_pub_key='',
3738
ssl_certificates=false,
3839
storage='',
3940
decrypt_password='',
@@ -64,7 +65,7 @@ function(bootloader=true,
6465
[if registration_code != '' then 'registrationCode']: registration_code,
6566
[if registration_url != '' then 'registrationUrl']: registration_url,
6667
},
67-
root: base_lib.root(root_password),
68+
root: base_lib.root(root_password, ssh_pub_key),
6869
[if ssl_certificates == true then 'security']: security_lib.sslCertificates(),
6970
[if scripts_pre != '' || scripts_post != '' || scripts_post_partitioning != '' then 'scripts']: {
7071
[if scripts_post != '' then 'post']: [ scripts_post_lib[x] for x in std.split(scripts_post, ',') ],

0 commit comments

Comments
 (0)