Skip to content

Allow installs through terraform to work on different ports #302

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

Merged
merged 2 commits into from
Apr 29, 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
1 change: 1 addition & 0 deletions terraform/all-in-one/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module "nixos-rebuild" {
ssh_private_key = var.deployment_ssh_key
target_host = var.target_host
target_user = var.target_user
target_port = var.target_port
}

output "result" {
Expand Down
1 change: 1 addition & 0 deletions terraform/install/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ resource "null_resource" "nixos-remote" {
nixos_system = var.nixos_system
target_user = var.target_user
target_host = var.target_host
target_port = var.target_port
extra_files_script = var.extra_files_script
no_reboot = var.no_reboot
build_on_remote = var.build_on_remote
Expand Down
2 changes: 2 additions & 0 deletions terraform/install/run-nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ if [[ ${extra_files_script-} != "" ]]; then
popd
args+=("--extra-files" "${tmpdir}/extra-files")
fi

args+=("-p" "${target_port}")
args+=("${target_user}@${target_host}")

keyIdx=0
Expand Down
Loading