Skip to content

Commit

Permalink
Rename generate-host-ssh-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbattat committed Jan 21, 2025
1 parent 800e17d commit f9e3456
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ic-os/boundary-guestos/context/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ serve as a guide on how to add further actions.

=== ssh key generation

The `setup-ssh-keys` (and corresponding shell script) service performs one of
The `generate-host-ssh-keys` (and corresponding shell script) service performs one of
two things: If this is the first boot ever (on a newly installed system), it
generates ssh keys and stashes them away in a location that is preserved across
reboots and in the future upgrades.
Expand Down
2 changes: 1 addition & 1 deletion ic-os/boundary-guestos/docs/Boot.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Relevant information can be found in the guestos link:../../guestos/docs/Boot.ad

== Set up ssh host keys

Service: `setup-ssh-keys.service`, script: `/opt/ic/bin/setup-ssh-keys.sh`,
Service: `generate-host-ssh-keys.service`, script: `/opt/ic/bin/generate-host-ssh-keys.sh`,
depends on `/boot/config` mount.

This checks if ssh host keys for the system exist in the `config` partition
Expand Down
4 changes: 2 additions & 2 deletions ic-os/components/boundary-guestos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ component_files = {
Label("boundary-guestos/etc/systemd/system/setup-lvs.service"): "/etc/systemd/system/setup-lvs.service",
Label("boundary-guestos/etc/systemd/system/setup-nftables.service"): "/etc/systemd/system/setup-nftables.service",
Label("boundary-guestos/etc/systemd/system/setup-ssh-user-keys.service"): "/etc/systemd/system/setup-ssh-user-keys.service",
Label("boundary-guestos/etc/systemd/system/setup-ssh-keys.service"): "/etc/systemd/system/setup-ssh-keys.service",
Label("boundary-guestos/etc/systemd/system/generate-host-ssh-keys.service"): "/etc/systemd/system/generate-host-ssh-keys.service",
Label("boundary-guestos/etc/systemd/system/setup-var-log.service"): "/etc/systemd/system/setup-var-log.service",
Label("boundary-guestos/etc/systemd/system/setup-vector.service"): "/etc/systemd/system/setup-vector.service",
Label("boundary-guestos/etc/systemd/system/setup-version-metric.service"): "/etc/systemd/system/setup-version-metric.service",
Expand Down Expand Up @@ -87,7 +87,7 @@ component_files = {
Label("boundary-guestos/opt/ic/bin/setup-lvs.sh"): "/opt/ic/bin/setup-lvs.sh",
Label("boundary-guestos/opt/ic/bin/setup-nftables.sh"): "/opt/ic/bin/setup-nftables.sh",
Label("boundary-guestos/opt/ic/bin/setup-ssh-user-keys.sh"): "/opt/ic/bin/setup-ssh-user-keys.sh",
Label("boundary-guestos/opt/ic/bin/setup-ssh-keys.sh"): "/opt/ic/bin/setup-ssh-keys.sh",
Label("boundary-guestos/opt/ic/bin/generate-host-ssh-keys.sh"): "/opt/ic/bin/generate-host-ssh-keys.sh",
Label("boundary-guestos/opt/ic/bin/setup-var-encryption.sh"): "/opt/ic/bin/setup-var-encryption.sh",
Label("boundary-guestos/opt/ic/bin/setup-var-log.sh"): "/opt/ic/bin/setup-var-log.sh",
Label("boundary-guestos/opt/ic/bin/setup-vector.sh"): "/opt/ic/bin/setup-vector.sh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Before=ssh.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/opt/ic/bin/setup-ssh-keys.sh
ExecStart=/opt/ic/bin/generate-host-ssh-keys.sh

[Install]
WantedBy=multi-user.target
4 changes: 2 additions & 2 deletions ic-os/components/guestos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ component_files = {

# ssh
Label("ssh/provision-ssh-keys.sh"): "/opt/ic/bin/provision-ssh-keys.sh",
Label("ssh/setup-ssh-keys/setup-ssh-keys.sh"): "/opt/ic/bin/setup-ssh-keys.sh",
Label("ssh/setup-ssh-keys/setup-ssh-keys.service"): "/etc/systemd/system/setup-ssh-keys.service",
Label("ssh/generate-host-ssh-keys/generate-host-ssh-keys.sh"): "/opt/ic/bin/generate-host-ssh-keys.sh",
Label("ssh/generate-host-ssh-keys/generate-host-ssh-keys.service"): "/etc/systemd/system/generate-host-ssh-keys.service",
Label("ssh/setup-ssh-user-keys/setup-ssh-user-keys.sh"): "/opt/ic/bin/setup-ssh-user-keys.sh",
Label("ssh/setup-ssh-user-keys/setup-ssh-user-keys.service"): "/etc/systemd/system/setup-ssh-user-keys.service",
Label("ssh/read-ssh-keys.sh"): "/opt/ic/bin/read-ssh-keys.sh",
Expand Down
4 changes: 2 additions & 2 deletions ic-os/components/hostos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ component_files = {
Label("networking/hosts"): "/etc/hosts",

# ssh
Label("ssh/setup-ssh-keys/setup-ssh-keys.sh"): "/opt/ic/bin/setup-ssh-keys.sh",
Label("ssh/setup-ssh-keys/setup-ssh-keys.service"): "/etc/systemd/system/setup-ssh-keys.service",
Label("ssh/generate-host-ssh-keys/generate-host-ssh-keys.sh"): "/opt/ic/bin/generate-host-ssh-keys.sh",
Label("ssh/generate-host-ssh-keys/generate-host-ssh-keys.service"): "/etc/systemd/system/generate-host-ssh-keys.service",
Label("ssh/setup-ssh-user-keys/setup-ssh-user-keys.sh"): "/opt/ic/bin/setup-ssh-user-keys.sh",
Label("ssh/setup-ssh-user-keys/setup-ssh-user-keys.service"): "/etc/systemd/system/setup-ssh-user-keys.service",
Label("ssh/deploy-updated-ssh-account-keys/deploy-updated-ssh-account-keys.sh"): "/opt/ic/bin/deploy-updated-ssh-account-keys.sh",
Expand Down
2 changes: 1 addition & 1 deletion ic-os/components/init/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ serve as a guide on how to add further actions.

== ssh key generation

The +ssh/setup-ssh-keys+ (and corresponding shell script) service performs one of
The +ssh/generate-host-ssh-keys+ (and corresponding shell script) service performs one of
two things: If this is the first boot ever (on a newly installed system), it
generates ssh keys and stashes them away in a location that is preserved across
upgrades. On first boot after an upgrade, it integrates the keys from their
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Before=ssh.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/opt/ic/bin/setup-ssh-keys.sh
ExecStart=/opt/ic/bin/generate-host-ssh-keys.sh

[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion ic-os/guestos/docs/Boot.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ system will set up its own +/var+ filesystem correctly again.

== Set up ssh host keys

Service: +setup-ssh-keys.service+, script: +/opt/ic/bin/setup-ssh-keys.sh+,
Service: +generate-host-ssh-keys.service+, script: +/opt/ic/bin/generate-host-ssh-keys.sh+,
depends on +/boot/config+ mount.

This checks if ssh host keys for the system exist in the +config+ partition
Expand Down

0 comments on commit f9e3456

Please sign in to comment.