Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ed25519 Vagrant SSH public key #143

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fedora.ks
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bootloader --location=mbr
firstboot --disable
autopart
user --name=vagrant --groups=wheel --password=vagrant --plaintext
sshkey --username=vagrant "${trimspace(file("${path.root}/keys/vagrant.pub"))}"
${join("\n", formatlist("sshkey --username=vagrant \"%s\"", compact(split("\n", file("${path.root}/keys/vagrant.pub")))))}
reboot

repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
Expand Down
1 change: 1 addition & 0 deletions keys/vagrant.pub
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN1YdxBpNlzxDqfJyw/QKow1F+wvG9hXGoqiysfJOn5Y vagrant insecure public key
2 changes: 1 addition & 1 deletion silverblue.ks
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bootloader --location=mbr
firstboot --disable
autopart
user --name=vagrant --groups=wheel --password=vagrant --plaintext
sshkey --username=vagrant "${trimspace(file("${path.root}/keys/vagrant.pub"))}"
${join("\n", formatlist("sshkey --username=vagrant \"%s\"", compact(split("\n", file("${path.root}/keys/vagrant.pub")))))}
ostreesetup --osname="fedora-silverblue" --remote="fedora" --url="file:///ostree/repo" --ref="fedora/${version}/x86_64/silverblue" --nogpg
reboot

Expand Down
3 changes: 1 addition & 2 deletions ubuntu-22.04-autoinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ autoinstall:
hostname: ${hostname}
ssh:
install-server: yes
authorized-keys:
- ${trimspace(file("${path.root}/keys/vagrant.pub"))}
authorized-keys: ${format("%#v", compact(split("\n", file("${path.root}/keys/vagrant.pub"))))}
allow-pw: yes
packages:
- ubuntu-desktop
Expand Down
3 changes: 1 addition & 2 deletions ubuntu-autoinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ autoinstall:
hostname: ${hostname}
ssh:
install-server: yes
authorized-keys:
- ${trimspace(file("${path.root}/keys/vagrant.pub"))}
authorized-keys: ${format("%#v", compact(split("\n", file("${path.root}/keys/vagrant.pub"))))}
allow-pw: yes
packages:
- qemu-guest-agent
Expand Down