Skip to content

BarryL4bs/terraform-bpg-proxmox-cloud-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-bpg-proxmox-cloud-image

Description

Terraform module which downloads cloud images or iso's on the proxmox host.

Usage

module "cloud-image" {
  source = "../terraform-bpg-proxmox-cloud-image"

  content_type = "iso"
  datastore = "local"
  nodename = "pve-host01"
  url      = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
  checksum = "0d8345a343c2547e55ac815342e6cb4a593aa5556872651eb47e6856a2bb0cdd"
  checksum_algorithm = "sha256"
}

Requirements

Name Version
terraform >= 0.13
proxmox >= 0.68.0

Providers

Name Version
proxmox >= 0.68.0

Inputs

  • content_type: The file content type. Must be iso for VM images or vztmpl for LXC images.
  • datastore: The identifier for the target datastore.
  • nodename: Hostname where the image/iso is allocated.
  • url: The URL to download the file from. Format https?://.*.
  • checksum (Optional): The expected checksum of the file.
  • checksum_algorithm (Optional): The algorithm to calculate the checksum of the file. Must be md5 | sha1 | sha224 | sha256 | sha384 | sha512.

Outputs

  • id: The unique identifier of this resource.

Notes

  • To use this module you need to load a .env file ( source .env) exporting the following variables with their respective values:
  export PROXMOX_VE_ENDPOINT=''
  export PROXMOX_VE_API_TOKEN=''
  export PROXMOX_VE_SSH_AGENT=true
  export PROXMOX_VE_SSH_USERNAME=''

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages