Skip to content

fix: pass TF_VAR_admin_ip to container in infra-shell.sh#160

Merged
noahwhite merged 1 commit intodevelopfrom
feature/GHO-60-pass-admin-ip-to-container
Feb 17, 2026
Merged

fix: pass TF_VAR_admin_ip to container in infra-shell.sh#160
noahwhite merged 1 commit intodevelopfrom
feature/GHO-60-pass-admin-ip-to-container

Conversation

@noahwhite
Copy link
Owner

Summary

  • Pass TF_VAR_admin_ip environment variable to the docker container

Problem

The infra-shell.sh script correctly fetches and exports TF_VAR_admin_ip (line 287/299), but the docker run command was missing the -e TF_VAR_admin_ip flag. This caused tofu plan to prompt for var.admin_ip when running inside the container.

Fix

Added -e TF_VAR_admin_ip \ to the docker run command alongside the other TF_VAR_* variables.

Test plan

  • Run ./docker/scripts/infra-shell.sh locally
  • Inside container, verify echo $TF_VAR_admin_ip shows the IP
  • Run ./opentofu/scripts/tofu.sh dev plan without prompts

Fixes GHO-60

The script exports TF_VAR_admin_ip but was not passing it to the docker
container, causing tofu plan to prompt for var.admin_ip when running
locally.

Fixes GHO-60
@linear
Copy link

linear bot commented Feb 17, 2026

@noahwhite noahwhite self-assigned this Feb 17, 2026
@noahwhite noahwhite merged commit 9cd5765 into develop Feb 17, 2026
6 checks passed
@noahwhite noahwhite deleted the feature/GHO-60-pass-admin-ip-to-container branch February 17, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments