allow custom ssh key type

Change-Id: Ia45e3bcbc88fdc508012cd56ccd489c39a15661d
This commit is contained in:
Hoai-Thu Vuong
2025-03-25 17:20:49 +07:00
parent aa59eb069a
commit 089017de19
2 changed files with 3 additions and 1 deletions

1
Vagrantfile vendored
View File

@@ -77,6 +77,7 @@ def configure_vm(name, vm, conf)
"host_ip_iface" => conf["host_ip_iface"] || "enp0s8",
"vagrant_username" => conf["vagrant_username"] || "ubuntu",
"ip_version" => conf["ip_version"] || "4",
"stack_sshkey_type" => conf["stack_sshkey_type"] || "rsa",
}
# add all the rest of the content in the conf file
conf.each do |k, v|

View File

@@ -7,7 +7,7 @@ class user::stack(
{
notify { 'after':
message => "User params: u => $username, p => $stack_password, k => $stack_sshkey"
message => "User params: u => $username, p => $stack_password, k => $stack_sshkey, t => $stack_sshkey_type"
}
@@ -22,6 +22,7 @@ class user::stack(
user => $username,
pass => $stack_password,
key => $stack_sshkey,
key_type => $stack_sshkey_type,
is_admin => true,
} ->