From b3c647ea47b3066fa40d641e4513acca04105889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Manchon?= Date: Wed, 3 Jun 2026 14:06:26 +0200 Subject: [PATCH] parametrise key name --- _partials/ssh_key.md | 4 ++-- _partials/vscode_remote_ssh.md | 2 +- builds/LINUX.yml | 8 ++++++-- builds/WINDOWS.yml | 8 ++++++-- builds/macOS.yml | 8 ++++++-- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/_partials/ssh_key.md b/_partials/ssh_key.md index 91bfad9..79c8c4c 100644 --- a/_partials/ssh_key.md +++ b/_partials/ssh_key.md @@ -49,8 +49,8 @@ To create a separate SSH key to exclusively use for this bootcamp use the follow ```bash # replace your_email@example.com, this is purely informative and allows you to remember the use of this key -ssh-keygen -t ed25519 -f ~/.ssh/de-bootcamp -C your_email@example.com +ssh-keygen -t ed25519 -f ~/.ssh/{{ key_name }} -C your_email@example.com ``` -Your new SSH Key will be named `de-bootcamp`. Make sure to remember it for later! +Your new SSH Key will be named `{{ key_name }}`. Make sure to remember it for later! diff --git a/_partials/vscode_remote_ssh.md b/_partials/vscode_remote_ssh.md index 29e3eaa..91b867b 100644 --- a/_partials/vscode_remote_ssh.md +++ b/_partials/vscode_remote_ssh.md @@ -66,7 +66,7 @@ You can now change Host to whatever you would like to see as the name of your co ```bash # For instance -Host "de-bootcamp-vm" +Host "{{ vm_hostname }}" HostName 34.77.50.76 # replace with your VM's public IP address IdentityFile User diff --git a/builds/LINUX.yml b/builds/LINUX.yml index e27cec1..71763e2 100644 --- a/builds/LINUX.yml +++ b/builds/LINUX.yml @@ -6,11 +6,15 @@ partials: - setup/ubuntu_slack - setup/slack_settings - setup/github - - ssh_key + - name: ssh_key + vars: + key_name: de-bootcamp - gcp_setup - virtual_machine - setup/ubuntu_vscode - - vscode_remote_ssh + - name: vscode_remote_ssh + vars: + vm_hostname: de-bootcamp-vm - vscode_extensions - cli_tools - setup/oh_my_zsh diff --git a/builds/WINDOWS.yml b/builds/WINDOWS.yml index e5140aa..1166fa5 100644 --- a/builds/WINDOWS.yml +++ b/builds/WINDOWS.yml @@ -6,11 +6,15 @@ partials: - setup/windows_slack - setup/slack_settings - setup/github - - ssh_key + - name: ssh_key + vars: + key_name: de-bootcamp - gcp_setup - virtual_machine - win_vscode - - vscode_remote_ssh + - name: vscode_remote_ssh + vars: + vm_hostname: de-bootcamp-vm - vscode_extensions - cli_tools - setup/oh_my_zsh diff --git a/builds/macOS.yml b/builds/macOS.yml index 9827a7f..512a90a 100644 --- a/builds/macOS.yml +++ b/builds/macOS.yml @@ -6,11 +6,15 @@ partials: - setup/macos_slack - setup/slack_settings - setup/github - - ssh_key + - name: ssh_key + vars: + key_name: de-bootcamp - gcp_setup - virtual_machine - osx_vscode - - vscode_remote_ssh + - name: vscode_remote_ssh + vars: + vm_hostname: de-bootcamp-vm - vscode_extensions - cli_tools - setup/oh_my_zsh