Skip to content

terra: read wrapper settings from terranix _meta#423

Open
oneingan wants to merge 1 commit intodivnix:mainfrom
oneingan:terra-meta
Open

terra: read wrapper settings from terranix _meta#423
oneingan wants to merge 1 commit intodivnix:mainfrom
oneingan:terra-meta

Conversation

@oneingan
Copy link
Contributor

This lets the terra blocktype consume optional wrapper/backing settings from terranix metadata, without changing the rendered Terraform JSON.

  • New (optional) contract consumed from terranix: _meta.std.*
    • _meta.std.package: terraform/opentofu package (optionally already withPlugins)
    • _meta.std.providers: list of provider packages; when set we call package.withPlugins
    • _meta.std.modules: attrset of vendored module directories (symlinked into the staging dir)
    • _meta.std.terraformBackendGit.*: override the default terraform-backend-git wrapper; enable = false runs the CLI directly

Dependency

Testing

  • nix flake check -L

@oneingan
Copy link
Contributor Author

Update: removed the immutable root module machinery for now and kept this PR focused/minimal.

  • terra only consumes optional _meta.std.{package,providers,modules,terraformBackendGit.*}
  • no hard asserts; defaults preserve current behaviour when _meta is absent

Teach the terra blocktype to consume _meta.std package/providers/modules and terraformBackendGit overrides while preserving existing defaults when metadata is absent.
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