Skip to content
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

Add "nixos" to operating system type validator #383

Closed
shayne opened this issue Jun 24, 2023 · 0 comments · Fixed by #387
Closed

Add "nixos" to operating system type validator #383

shayne opened this issue Jun 24, 2023 · 0 comments · Fixed by #387
Labels
🐛 bug Something isn't working

Comments

@shayne
Copy link

shayne commented Jun 24, 2023

Describe the bug
NixOS proxmox-lxc containers have OS Type of "nixos".

To Reproduce
Steps to reproduce a CT with the "nixos" OS Type:

  1. Generate CT template with nix run github:nix-community/nixos-generators -- --format proxmox-lxc
  2. Upload to Proxmox
  3. Create CT from the template

To reproduce in Terraform:

  1. Create a new "proxmox_virtual_environment_container" resource

  2. Specify the "operating_system" to be the template

    operating_system {
       type             = "nixos"
       template_file_id = "local:vztmpl/nixos-system-x86_64-linux.tar.xz"
     }
    

Expected behavior
Validation doesn't fail.

Screenshots
image

Additional context
Add any other context about the problem here.

  • Provider version (ideally it should be the latest version): v0.22.0
  • Terraform version: v1.4.6
  • OS (where you run Terraform from)): NixOS
  • Debug logs (TF_LOG=DEBUG terraform apply):
@shayne shayne added the 🐛 bug Something isn't working label Jun 24, 2023
@bpg bpg closed this as completed in #387 Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant