Skip to content

shakir85/Terraform-Modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Release TF Docs TF Lint License Issues

Overview

This repository contains reusable Terraform modules for managing Proxmox infrastructure.

Modules in this repo are still in pre-1.0.0 version, so anything can change at any time.

Usage

Provider in use

Providers Setting

terraform {
  required_version = ">= 1.5.7"
  backend "" {
  }

  required_providers {
    proxmox = {
      source  = "bpg/proxmox"
      version = "0.70.0"
    }
    local = {
      source  = "hashicorp/local"
      version = ">= 2.5.1"
    }
  }
}

provider "proxmox" {
  endpoint = "https://PVE_IP_HERE:8006/"
  username = "USER@REALM"
  password = ""
  
  # Because self-signed TLS certificate is in use
  insecure = true

  ssh {
    agent       = false
    private_key = file("/path/to/id_rsa")
    username    = ""
    node {
      name    = ""
      address = "" # IPv4 without CIDR
    }
  }
}

# Define the following variables
variable "id_rsa_pub" {

}

variable "pve_user" {

}

variable "pve_pwd" {

}

variable "id_rsa" {

}