Skip to content

How to use a custom template with container ? #738

Closed Answered by Whax
Whax asked this question in Q&A
Discussion options

You must be logged in to vote

Okay I found the solution reading again
https://github.com/bpg/terraform-provider-proxmox/blob/main/docs/resources/virtual_environment_file.md

I was thinking the path of source_file for my template could be used as my local path but it seems to only work for downloading image

The solution was to set the ftemplate_file_id like that :

  operating_system {
    template_file_id = "local-btrfs:vztmpl/debian-12-custom.tar.zst" 
    type = "debian"
  }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Whax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant